2004 error or just issue with demo?
Looks like my savetoserver code working on 2003 has some issues on 2004 demo.
Nothing with the code. But when i save a WeaponClass to a ini file. And then on the next map it errors tring to load it .
Only thing i can think of is maybe there is a issue in the demo. i hope this is not for the final release.
example
If you set weapons[0].ID=0 and weapons[0].WC=XWeapons.AssaultRifle
do a saveconfig it will saveok but on a reload it will error
Error: Weapons::ImportText failed in: (Id=0,WC=XWeapons.AssaultRifle)
Other weapons are ok. just looks like this weapons wtf? and its not like i am setting the weapons its getting it from ingame.
so if the ini is set to
Weapons=(Id=0,WC=XWeapons.AssaultRifle)
Weapons=(Id=1,WC=Onslaught.ONSAVRiL)
Weapons=(Id=2,WC=Onslaught.ONSGrenadeLauncher)
Weapons=(Id=3,WC=XWeapons.LinkGun)
it will fail to load the AssaultRifle but the others are ok. and its not just the first one. does not matter where it is.
ITs getting the WC from ingame so it is there. in dont know never seen this before, have you?
What i am doing as a work around is also saving another var called WCSTR as a string name for that weapon. so if wc=none then use the string name and log that "2004 demo failed again"
what do you think?
Looks like my savetoserver code working on 2003 has some issues on 2004 demo.
Nothing with the code. But when i save a WeaponClass to a ini file. And then on the next map it errors tring to load it .
Only thing i can think of is maybe there is a issue in the demo. i hope this is not for the final release.
example
Code:
struct STSWeapons { var int ID; var class<Weapon> WC; }; var config array<STSWeapons> Weapons;
do a saveconfig it will saveok but on a reload it will error
Error: Weapons::ImportText failed in: (Id=0,WC=XWeapons.AssaultRifle)
Other weapons are ok. just looks like this weapons wtf? and its not like i am setting the weapons its getting it from ingame.
so if the ini is set to
Weapons=(Id=0,WC=XWeapons.AssaultRifle)
Weapons=(Id=1,WC=Onslaught.ONSAVRiL)
Weapons=(Id=2,WC=Onslaught.ONSGrenadeLauncher)
Weapons=(Id=3,WC=XWeapons.LinkGun)
it will fail to load the AssaultRifle but the others are ok. and its not just the first one. does not matter where it is.
ITs getting the WC from ingame so it is there. in dont know never seen this before, have you?
What i am doing as a work around is also saving another var called WCSTR as a string name for that weapon. so if wc=none then use the string name and log that "2004 demo failed again"
what do you think?
Comment