Little Fighter Empire - Forums
[solved] Problem with adding new attack for char. - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11)
+---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=14)
+---- Thread: [solved] Problem with adding new attack for char. (/showthread.php?tid=4729)



[solved] Problem with adding new attack for char. - Whaat - 04-05-2010

Okay, i have made a new char, put his id to data:
id: 15 type: 0 file: sprite\rocket\rocket.dat
And it works fine.

But now, i try to make a new attack for him, i have this same attack with other char too, so i just copied it and put it to rocket´s data. And of course i copied the data itself (???.dat), and i try to add new line to data:
id: 258 type: 3 file: sprite\rocket\rocket_col.dat
And after i start game with this new id, it goes fine at the start (start loadings etc.), but when i try to go fight, game says: error and closes itself (this error thing comes after that i have chosed how many bots there will come).
E: And if someone thinks why i don´t use the same data id what i use on my other character who has this attack, i want to change the colour, and then they can´t be same.

Data i have in rocket.dat:



RE: Problem with adding new attack for char. - MH-Razen - 04-06-2010

ok, first of all I dont know if your code is serious - you forgot <frame> and <frame_end> !?!?

Then if you used this and still have the bug: Did you delete any files from data.txt to abridge your loading time? if you delete any of the 10 normal heros from data.txt and the other heros you play with are random you get a game crash (cause the id the computer chose is not in use anymore) - that`s the reason I can think of right now...


RE: Problem with adding new attack for char. - WoodySmasher - 04-06-2010

u should post ur ball.dat so i can check it.


RE: Problem with adding new attack for char. - forgetlatios - 04-06-2010

right now i agree with MH and smasher... maybe you forgot all the <frame> and <frame_end>... but also if you say it works fine without the ball.dat, i'm absolutely confused. what data changer do you use? also, really you need to post that ball.dat. then we can fix the problem.


RE: Problem with adding new attack for char. - WoodySmasher - 04-06-2010

for the sake of humanity plz post ur rocket_col.dat


RE: Problem with adding new attack for char. - Whaat - 04-06-2010

Okay, thanks already for many answers.
And then to the questions:
MH Wrote:Did you delete any files from data.txt to abridge your loading time?
-Nope, i know that random thing error thing.
forgetlatios Wrote:but also if you say it works fine without the ball.dat, i'm absolutely confused.
Sorry if i said it confusingly, i mean the character works fine, if i don´t put the hit_??: 247 in his data, or i put oid: 253 instead of 258 (253 is the same attack with my other char but the color is wrong and i want to change it, so i can´t use this already working oid). And so i have checked that the problem isn´t in char and it´s in the rocket_col.dat or in the data.txt or somewhere else. So the problem is in col.dat. And I use DC1.5
-There isn´t <frame>s and <frame_end>s becouse if i copy straight from data changer, they just don´t appear, don´t know why, but it´s what ever.
-And the quested col.data:
(I´m worried about that the problem isn´t found here, becouse this is the exactly same data as the working same data is.)



E: Sorry everyone, i found out that the problem wasn´t in rocket, rocket was perfect.
I just taked everything else than standard things and rocket_dat and rocket_col.dat from my data.txt, ran lf, and everything worked fine. I will now just go and check where the problem really is and then put other data.txtes back.
Sorry for having you to help me with wrong problem.
And thank you for still helping me.
I will ask here if i have other problems :)