Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
All about Exe ver.(2.0)
#5
(02-22-2015, 07:26 PM)Doctor A Wrote:  5-Not sure how stages are stored, but I think a stage's data is stored in an array of size 5. You resize that array into 6, and it might work. Where do you resize it exactly? No idea. You will have to figure this out yourself.
I guess I can shed some light on this:
The stage data is stored as an array of length 60 like so:
    C-Code:
typedef struct {
    sDataFile *datas[500];
    sStage stages[60];
    sBackground backgrounds[50];
} sFileManager;

Each stage level takes up 10 stages, and the last stage level is used for survival.
If you are willing to ditch survival all that would have to be done is to remove all the code that makes stage level 6 (survival) special.

If Survival Stage is a must, then I'd like A-Man said you'd have to change how much memory is allocated for the structure, in order for it to hold 70 stages, but not only that. You'd also have to modify EVERY SINGLE piece of code which reads from the backgrounds array, because it is now located at a different position. The only way to do that is to spend a bunch of time finding code that reads and writes (Cheat Engine/OllyDbg can help with that), but after that rejoice, you can now begin changing EVERY SINGLE piece of code that deals with making stage level 6 special, and instead making stage level 7 special.

The same exact thing goes if you want to make the datas array larger (it is the one that holds every data file loaded), except this time around not only will you have to deal with backgrounds, but also EVERY SINGLE piece of code that deals with any stage.

When RaMMicHaeL originally released the 1000 objects exe (for LF2v1.9c), there were some issues with stage mode, because some of the code was reading from wrong the wrong piece of data.
Here are the good news though: if you want more background, all you have to do is allocate more data, and you are done. Sadly this seems to be what people care the least about, so I guess you can blame that one on Marti.

Lastly a piece of advice to LABEED/DARK-EVIL: You have a bunch of requests, for a lot of different things. You probably have a bunch of grand ideas for your mod, which reminds me of myself back in 2008 (I was 13 years old so around your age). I was working on a mod, and I had a bunch of great ideas for it, but I never finished it, because it was simply too much work for me, and I found other things I rather wanted to work on. Instead of trying to make this impressive mod that will blow us all away, focus on something simpler. If you have a cool idea for a character try to make him. I don't care if you use sprites from one of the characters already in LF2, or use sprites from an already existing character (just give credit). If the data changing is nice, then that is good enough. If you really want to make a nice stage mode, then start out with stage 1, and focus wholly on that. If you use characters made by others then I honestly can't see why they'd mind (as long as you give them credit).

In the end my advice can be summarized thusly: "Don't try to finish something you haven't got the pieces for yet." ~Myself
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by: Memento , A-Man


Messages In This Thread
All about Exe ver.(2.0) - by MH-LABEEB - 02-20-2015, 04:55 AM
RE: All about Exe ver.(2.0) - by Hellblazer - 02-20-2015, 09:37 AM
RE: All about Exe ver.(2.0) - by MH-LABEEB - 02-22-2015, 05:14 PM
RE: All about Exe ver.(2.0) - by A-Man - 02-22-2015, 07:26 PM
RE: All about Exe ver.(2.0) - by Som1Lse - 02-22-2015, 08:52 PM
RE: All about Exe ver.(2.0) - by MH-LABEEB - 02-23-2015, 05:49 AM



Users browsing this thread: 1 Guest(s)