Hello, i'm fairly new to this and i've been trying to add a custom status (it's basically a buff that increases movement speed) and I am getting an error "[Error]: status_change_start: Invalid status change (2001)!". I'm not sure what if there's anything i've missed from all the searching i've done but so far i've made changes to the following files:
1) status.cpp
Added:
if( sc->getSCE(SC_VIPMSPD) )
val = max( val, 25 );
I've been going through the forums and have been trying the solutions posted there but couldn't for the life of me resolve it. I've recompiled the server multiple times now and still no luck. Any guidance is appreciated. Thank you.
UPDATE (SOLVED):
Resolved this by cleaning the stateinfo files (efstids.lub, stateiconimginfo.lub, stateiconinfo_f.lub, and stateiconinfo.lub) in my GRF (data/luafiles514/lua files/stateinfo) by deleting all the other stuff in it and left just my custom status.
Thanks to all those who helped!
Question
OffGrid
Hello, i'm fairly new to this and i've been trying to add a custom status (it's basically a buff that increases movement speed) and I am getting an error "[Error]: status_change_start: Invalid status change (2001)!". I'm not sure what if there's anything i've missed from all the searching i've done but so far i've made changes to the following files:
1) status.cpp
Added:
if( sc->getSCE(SC_VIPMSPD) ) val = max( val, 25 );
2) status.hpp
Added:
SC_VIPMSPD = 2001,
Before:
SC_MAX,
3) script_constants.hpp
Added:
export_constant(SC_VIPMSPD); export_deprecated_constant2("SI_VIPMSPD",2001); export_constant(EFST_VIPMSPD);
4) efstids.lub
Added:
EFST_VIPMSPD = 2001,
5) stateiconimginfo.lub
Added:
[EFST_IDs.EFST_VIPMSPD] = "vipmspd.tga"
6) stateiconinfo_f.lub
Added:
StateIconList[EFST_IDs.EFST_VIPMSPD] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "VIP Movement Speed", COLOR_TITLE_BUFF }, { "%s", COLOR_TIME }, { "Increases Movement Speed" } } }
7) stateiconinfo.lub
Added:
EFST_IDs.EFST_VIPMSPD
I've been going through the forums and have been trying the solutions posted there but couldn't for the life of me resolve it. I've recompiled the server multiple times now and still no luck. Any guidance is appreciated. Thank you.
UPDATE (SOLVED):
Resolved this by cleaning the stateinfo files (efstids.lub, stateiconimginfo.lub, stateiconinfo_f.lub, and stateiconinfo.lub) in my GRF (data/luafiles514/lua files/stateinfo) by deleting all the other stuff in it and left just my custom status.
Thanks to all those who helped!
Added solution
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.