Mysterious2k9 Posted July 30, 2010 Share Posted July 30, 2010 Hi, Every time I make a map with Simple Native Trainer, save it, then load it, the objects always load slightly higher than the position I saved them in.. Is there any way to fix this? Or at least a better map editor? Thanks in advance Link to comment Share on other sites More sharing options...
Mysterious2k9 Posted July 31, 2010 Author Share Posted July 31, 2010 (edited) Okay I couldn't find any way of fixing this. So I decided to write a program in Visual Basic which edits the objects.ini file, changing the Z coords for each object back to the position you originally saved them in. Just tested it for the first time and it works perfectly I'll probably only be doing the objects that are listed in the objects menu though, not the ones that are alphabetically listed.. since I have to actually stand on each object and work out the difference from where it was saved and where it loaded. which takes ages =\ I will post it here when it's done. But if anyone has a better solution, I'll be damn happy to hear it! Edit: Just tested it again after I restart my computer and the whole thing went to hell.. the objects spawn at a completely random spot every time. Guess this is just a lost cause... > Edited July 31, 2010 by Mysterious2k9 Link to comment Share on other sites More sharing options...
XTREME0235 Posted July 31, 2010 Share Posted July 31, 2010 You should release your script. It pisses me off how the objects do that, especially if I'm trying to show my friends something and they tell me that the objects aren't in line with each other properly. XTREME0235. Link to comment Share on other sites More sharing options...
sjaak327 Posted August 6, 2010 Share Posted August 6, 2010 Actually, the trainer itself correct them, but it needs to know which objects to correct and with what value. I did describe how to do this yourself somewhere in the readme or in the changes file. (I suck for documentation:)) The problem is, that some objects are correct while others aren't. Don't ask me why, they just do. If you know of an object that is incorrect, all you need to do is: 1) Spawn an object that does save/load correctly, (like the first object on the object menu). Save it to an object slot (slot one for instance). 2) Delete the object you just saved 3) spawn the object that is incorrect onto the same spot 4) save it in an object slot (slot two for instance) 5) in trainer.ini locate the two objectslots, and substract the Z value of slot 1 to the Z value of slot 2, also note the object id of slot 2. You know have the two parameters you need, the object id, and the corrected value. Now you can add both to the objectcorrection section of trainer.ini. Next time you save and load that particular object, the trainer will correct it automatically. I already correct about 100 objects automatically in the trainer using an object array (compiled with trainer). I would be more then happy to add more objects. All I need are object Id and corrected value. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now