View Single Post
WhiteFalcon
Member
Join Date: Nov 2019
Old 01-14-2021 , 06:43   Re: VS. Saxton Hale Version 2 - v2.10.28 Dev
Reply With Quote #132

Quote:
Originally Posted by Sappykun View Post
However, loading Koishi as a boss causes the following errors in the console:

Code:
[SM] Plugin freaks/default_abilities.ff2 failed to load: Native "FF2_GetFF2flags" was not found.
[SM] Plugin freaks/rage_overlay.ff2 failed to load: Native "FF2_GetBossTeam" was not found.
[SM] Plugin freaks/powerlord_abilities.ff2 failed to load: Native "FF2_GetBossIndex" was not found.
These functions are defined as stocks in freak_fortress_2.inc, but it seems none of these functions are recognized as natives, even when I try to recompile default_abilities.sp using the new include.
Make sure you're running and compiling with VSH2-Branch, those natives doesn't exists anymore and are reforwarded with a stock function. I lazily updated default_abilities for now, it should work but you should also use ff2_vsh2defaults documented here for consistency


Quote:
Originally Posted by Sappykun View Post
I can make these messages go away when defining dummy natives in modules/ff2/natives.sp, but unfortunately I am not proficient enough in Sourcepawn to figure out how to get these natives to use the defined stock methods.
You shouldn't use anything in "modules/ff2" directory except for "formula_parser" if you really need to


Quote:
Originally Posted by Sappykun View Post
On a side note, I noticed that when adding characters in data/freak_fortress_2/characters.cfg, it always seems to chop off the last defined character. For example, when I have:
Code:
"Freak Fortress 2"
{
	"1"		"koishi"
	"2"		"metalgearrising_armstrong"
}
I only see Koishi. When I have:
Code:
"Freak Fortress 2"
{
	"1"		"koishi"
	"2"		"metalgearrising_armstrong"
	"3"		"whatever"
}
I see both Koishi and Armstrong as intended.
I'm not sure about what's wrong here exactly, i'll look it up later when i'm not busy. For now you can use ConfigMap's enumeration to resolve it
Code:
"Freak Fortress 2"
{
	"<enum>"		"koishi"
	"<enum>"		"metalgearrising_armstrong"
	"<enum>"		"some_other_hale"
	"<enum>"		"etc"
}
Four final notes
  • Make sure you're compiling the latest version of FF2
  • Inb4 Nergal merge the PR, make sure your "slot" or "arg0"'s value is not "0", you can straight up remove it for now or change it to "10", or wait for Nergal to merge
  • Check the Wiki here for more informations, still under construction and if you need any more questions, you can make a post an issue there, new thread, or wait until I finish the wiki
  • For koishi's config, you can add two keys
    Code:
    	"No Superjump"			"1" // Disable superjump
    	"No HUD"			"1" // Disable superjump hud

Last edited by WhiteFalcon; 01-14-2021 at 06:49.
WhiteFalcon is offline