Little Fighter Empire - Forums
[solved] Chracters you deafeat are automaticly unlocked. - 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: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43)
+---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=45)
+---- Thread: [solved] Chracters you deafeat are automaticly unlocked. (/showthread.php?tid=4386)



[solved] Chracters you deafeat are automaticly unlocked. - Madara Uchiha - 01-26-2010

Could it ever be possible to do something like that?
Were when you defeat the character in stage mode, they are automaticly unlocked; and there is know need to write in a password or redo stage mode when you unlock them. As soon as you play the game, the characters you got are unlocked.

Is it possible?
And how?


RE: Chracters you deafeat are automaticly unlocked. - Som1Lse - 01-26-2010

(01-26-2010, 08:05 AM)Madara Uchiha Wrote:  Is it possible?
Yes.

(01-26-2010, 08:05 AM)Madara Uchiha Wrote:  And how?
Its just not worth the effort.

This would require loads of hex and stuff like that and the only person on LFE that would be able to do this is Silva (and probably a few other ones), which is sadly, gone.

And why would you even need something like this?


RE: Chracters you deafeat are automaticly unlocked. - Silverthorn - 01-26-2010

Basically, what you have to do is the following:

Code:
--- pseudo-code ahead ---

// in stage-mode
if(ID[x].beaten()) {
  achievementsArray = readOut("data\achievements.txt");
  if(achievementsArray.doesNotInclude(ID[x])
    achievementsArray.add(ID[x]);
}

// in character selection menu
achievementsArray = readOut("data\achievements.txt");
foreach(achievementsArray)
  unlockChar();
So what does this code want to tell us? Achievements are being put into a file called "achievements.txt" (yes, this has to be existent, I didn't want to extend this code any further). The IDs are specified as an array, thus you can make it more flexible. achievements.txt could look like this:
Code:
50
51
52
This could tell the procedure that IDs 50, 51, and 52 have been unlocked and so those characters are displayed.

As you can see, the method behind it is comparably simple. However, since it's using ASM and IO-stuff, it might be a little complicated to do via a DLL. Therefore, I would refrain from doing something like this.


RE: Chracters you deafeat are automaticly unlocked. - naruto hyuuga - 01-26-2010

would need alot extra code for the AI
if you don't want lf2.net to work


RE: Chracters you deafeat are automaticly unlocked. - TheNave - 01-26-2010

(01-26-2010, 02:20 PM)naruto hyuuga Wrote:  would need alot extra code for the AI
if you don't want lf2.net to work

what tha hell? that post made no sense, it has nothing to do with the AI and the lf2.net cheat can be blocked with removing like 1 line...

@topic
ya, that would require one more txt file where the unlocked id's are saved, I guess it's hell lot of work and not worth doing it anyways


RE: Chracters you deafeat are automaticly unlocked. - Bamboori - 01-26-2010

...mainly cause with this way you could simply fake your achievements :P


RE: Chracters you deafeat are automaticly unlocked. - Silverthorn - 01-26-2010

(01-26-2010, 03:34 PM)Bamboori Wrote:  ...mainly cause with this way you could simply fake your achievements :P

Not if you encrypt them. I basically just provided the easiest way, I totally omitted the capability of encrypting =P


RE: Chracters you deafeat are automaticly unlocked. - Madara Uchiha - 01-26-2010

Well I might consider this method anyway.