UFO:Alien Invasion
Development => Coding => Topic started by: Valaska on May 19, 2008, 09:32:39 pm
-
Heya guys! Hows things going? Well.. I'm not going to get anywhere if I wait for you to answer! So!
I was wondering if there is any way to edit saved games, right now I am on a Medium campaign and I got 16 soldiers.. I was wondering if I could edit it so there are more soldiers I can hire, and have more funds.. I have 6600000 Credit right now, but more soldiers make many expensives!
Thanks for reading.
-
you can set the cvar save_compressed to 0 and edit the savegame with a hexeditor
-
Ok.. Now where do I find all this and whats a hex editor and will this break any of the stuff I have now?? I don't spend much time here on the computer so I need more directions than that lol.
-
Uh, what did you think editing savegames would be like?
-
Is is possible to edit the teams you have saved in the Windows version? I know they are in %APPDATA% but they look like gibberish except for the soldier names and some equipment names.
-
That's because the values aren't stored as text. They're stored as "real" numbers. Since letters on your screen are actually also numeric values, and you try to display the save file in a viewer, it will look like gibberish because it's trying to display the numbers as characters. To view or edit the actual values you need a HEX editor, and you need to know how hexadecimal numbering works.
-
Then I must need to learn hex; I tried a hex editor and could only find names, weapons, and the team name. (I want to edit their skills)
-
I expected it to be just like changing the parameters of a campaign, sorry I don't sit on my computer 34/7 but I just don't have the time hence why I wanted to know if he could tell me more in depth.
-
I've found a nice hex->dec / dec->hex converter - http://www.statman.info/conversions/hexadecimal.html (http://www.statman.info/conversions/hexadecimal.html). As for a hex editor, I used the one at http://www.physics.ohio-state.edu/~prewett/hexedit/ (http://www.physics.ohio-state.edu/~prewett/hexedit/). I could modify everything but the accuracy etc. - could edit the skills, equipment, etc. The files are in %APPDATA%\UFOAI\2.x\base\save\teamx.mbt.
EDIT: Sorry, figured out a minute later how to edit (traits?) and HP. Just need to convert + search...
-
Thanks BAM! I figured it out, any-who! Sleep now, work tomorrow, then some edited UFO! lol.
-
LOL, this thread just cracked me up - sorry, but I just had to get that out.
If you're looking to alter things in the game, I'd start by editing the .ufo files, which on Windows can be altered with a standard text editor (such as notepad, no hex editor required). I think that would be a much easier approach with a lot less work - those .ufo files allow changes to just about everything (how much money you start with, weapon stats and firemodes, base facility capacity, etc., etc.).
I think I see where you're coming from though, if you're rather new to the project - I remember days when I would look for editors for a lot of commercial games, and try to alter things myself, sometimes with hex editors. This project is a bit different, it's open-source, anyone can alter the source code if they know how to program in C, and if they aren't a programmer they can still do quite a bit with the .ufo files to re-work the game. The whole project is fairly open, there's really no need to try to "hack" it.
If you're running windows and want to change things in-game, or outright "cheat," you might also look into a program called GameWiz32 (Google it and you'll get download links from various places). It's creator no longer has his website up, but it's still on a lot of download servers out there, and it is very quick and easy to use (no programming knowledge required, it alters memory while the game is running to give you more money, freeze health or ammunition while playing, etc.) Please note before you grab it though, that I don't know if it's completely clean or not. Download.com and other such sites say it is clean, but I've known for them to occasionally miss some adware-type stuff. I will say that I tried it a long time ago and never had any issues from it, and it works with almost any game.
-
Oh, don't say that. I found it useful to hack multiplayer teams when experimenting around with the accuracy code. It's a lot less work to manually set up a soldier to have exactly those stats you want than to temporarily modify the code to make soldiers show up with those stats and having to make a new team for every stat configuration.
-
True that you only need a text editor for the .ufo files, but if you want to modify your teams stats...
-
I know it's old topic, but better here than a new one
I'm wondering about all that savegame stuff: Lot of people seem to intend changing the team stats.
As far as I understood, u've to cvar save_compressed 0 and than change the .ufo- and .pk-file, right?
Not the slotxx.lint and slotxx.xml -files, right?
How bout changing things like position and armory of an aircraft.
F.e I had a team out, on way back home, but the vehicle is shot down by another Ufo right after leaving crashbattlescene with no chance of beeing rescued.
Unfortunately I overwrote older savegames, where the ship wasn't started yet.
So I wonder if I can change the positon f.e.
As far as I recognize, the .lint-Files actually seem to include position, armory and so on, as <>-Values.
But changing them changes nothing.
Wrong file?
Thanks. ;)
-
What should I say... CHEATER!! :P
-geever
-
I'd rather see it as debugging of my stupidness in overwriting important savegames... :P
-
know this is an old topic but hey why not don't really want to start a new topic...
anyways playing 2.5 and having troubles, I changed the save compression and all and can edit my soldiers, and of course money I'd like to have a go at editting building stats... allow my workshops and labs to hold more scientists and workers.. maybe my storage to hold more stuff and my baracks to hold more people and maybe alter the length of time to build facilities....
in 2.5 where do I find these .ufo files, probably have to unpack a .pk file right? but which one? and do I Have to repack it when I'm done? Game wiz works well for weapons and other stuff like alien materials, body armour, weapons and such.....
-
Hi BritBrat
It seems like you are looking for our "User Modifications" board, in particular the sticky thread at the very top named "UFO scripting: guide to changing scriptable parameters"
PS
Welcome to the forums!
-
thanks I found the files on my own, lol I knew I would atleast before a reply anyways...
to be honest, the 'cheating' i do doesn't make the game any easier.... I edited the base management file just to make the game more like the classic Ufo game of old and used Hxd hex editor to give my soldiers a few more hit points after decompressing the save game file to make it editable... soldiers still get killed on missions mainly if I control the mission but sometimes on auto missions too...
love the game its a decent homage to the original Microprose release... and its almost everything the new commercial version isn't