Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Is there a way to edit my founders stats?  (Read 5686 times)

Booya

  • Escaped Lunatic
    • View Profile
Is there a way to edit my founders stats?
« on: October 04, 2012, 10:28:18 pm »

Preferably one that doesn't require too much effort.
Logged

Jboy2000000

  • Bay Watcher
  • Hello good people of the interwebs!
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #1 on: October 05, 2012, 12:41:03 am »

Open your save file in XML Editor and chance your founders stats in the file.
Logged
"Wanna be a better liberal? Go get shot in the fuckin' face."

Just goes to show, even a Male Doctor that Looks Like a Female and a Criminal with Poor Hygiene Habits can fall in love.

Booya

  • Escaped Lunatic
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #2 on: October 05, 2012, 12:52:32 am »

Which XML editor? I've tried XML notepad and jEdit and they both give me errors when I try to open it.
Logged

Jboy2000000

  • Bay Watcher
  • Hello good people of the interwebs!
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #3 on: October 05, 2012, 01:55:00 am »

Any XML Editor should work, I don't know why you're getting an error.
Logged
"Wanna be a better liberal? Go get shot in the fuckin' face."

Just goes to show, even a Male Doctor that Looks Like a Female and a Criminal with Poor Hygiene Habits can fall in love.

Darvi

  • Bay Watcher
  • <Cript> Darvi is my wifi.
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #4 on: October 05, 2012, 04:26:21 am »

Cheat engine.
Logged

Booya

  • Escaped Lunatic
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #5 on: October 05, 2012, 11:09:52 am »

Cheat engine.

How do I go about finding the correct address or whatever to edit in Cheat Engine?

Any XML Editor should work, I don't know why you're getting an error.

If it's any help, the error I get on XML Notepad is Load Error Invalid character in the given encoding. Line 1, Position 1. The error in jEdit is

C:\Users\Herb2\Desktop\lcs\lcs_win32_4.06.3\crimesquad.exe:
The file could not be loaded correctly (some data might be lost) with
the encoding "Cp1252".
(java.nio.charset.UnmappableCharacterException: Input length = 1)
Try selecting a different encoding.
It can be selected with the menu File->Reload with Encoding.
If you want it to be done automatically, add the candidates into
"List of fallback encodings" in Encodings pane of Global Options.

I couldn't find which encoding I'm supposed to use or whatever, I guess jEdit doesn't have it? I dunno. Could you tell me which program you use?
« Last Edit: October 05, 2012, 11:16:55 am by Booya »
Logged

Jboy2000000

  • Bay Watcher
  • Hello good people of the interwebs!
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #6 on: October 05, 2012, 11:18:20 am »

Any XML Editor should work, I don't know why you're getting an error.

If it's any help, the error I get on XML Notepad is Load Error Invalid character in the given encoding. Line 1, Position 1. The error in jEdit is

C:\Users\Herb2\Desktop\lcs\lcs_win32_4.06.3\crimesquad.exe:
The file could not be loaded correctly (some data might be lost) with
the encoding "Cp1252".
(java.nio.charset.UnmappableCharacterException: Input length = 1)
Try selecting a different encoding.
It can be selected with the menu File->Reload with Encoding.
If you want it to be done automatically, add the candidates into
"List of fallback encodings" in Encodings pane of Global Options.

Could you tell me which program you use?
I use Microsoft XML Notepad. Ive never gotten that error before, but "java.nio.charset.UnmappapleCharacterException" sounds like theres a problem in LCS, not your editor.
Logged
"Wanna be a better liberal? Go get shot in the fuckin' face."

Just goes to show, even a Male Doctor that Looks Like a Female and a Criminal with Poor Hygiene Habits can fall in love.

Booya

  • Escaped Lunatic
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #7 on: October 05, 2012, 03:25:15 pm »

Any XML Editor should work, I don't know why you're getting an error.

If it's any help, the error I get on XML Notepad is Load Error Invalid character in the given encoding. Line 1, Position 1. The error in jEdit is

C:\Users\Herb2\Desktop\lcs\lcs_win32_4.06.3\crimesquad.exe:
The file could not be loaded correctly (some data might be lost) with
the encoding "Cp1252".
(java.nio.charset.UnmappableCharacterException: Input length = 1)
Try selecting a different encoding.
It can be selected with the menu File->Reload with Encoding.
If you want it to be done automatically, add the candidates into
"List of fallback encodings" in Encodings pane of Global Options.

Could you tell me which program you use?
I use Microsoft XML Notepad. Ive never gotten that error before, but "java.nio.charset.UnmappapleCharacterException" sounds like theres a problem in LCS, not your editor.
I tried reinstalling and making a new character, no dice. IDK what's up, didn't think it would be this hard to change a skill value. Still can't figure out how to find the proper thing to edit in Cheat engine, my attempt ended up somehow causing the game to crash on startup, so no luck there either.
Logged

Jboy2000000

  • Bay Watcher
  • Hello good people of the interwebs!
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #8 on: October 05, 2012, 03:35:09 pm »

Any XML Editor should work, I don't know why you're getting an error.

If it's any help, the error I get on XML Notepad is Load Error Invalid character in the given encoding. Line 1, Position 1. The error in jEdit is

C:\Users\Herb2\Desktop\lcs\lcs_win32_4.06.3\crimesquad.exe:
The file could not be loaded correctly (some data might be lost) with
the encoding "Cp1252".
(java.nio.charset.UnmappableCharacterException: Input length = 1)
Try selecting a different encoding.
It can be selected with the menu File->Reload with Encoding.
If you want it to be done automatically, add the candidates into
"List of fallback encodings" in Encodings pane of Global Options.

Could you tell me which program you use?
I use Microsoft XML Notepad. Ive never gotten that error before, but "java.nio.charset.UnmappapleCharacterException" sounds like theres a problem in LCS, not your editor.
I tried reinstalling and making a new character, no dice. IDK what's up, didn't think it would be this hard to change a skill value. Still can't figure out how to find the proper thing to edit in Cheat engine, my attempt ended up somehow causing the game to crash on startup, so no luck there either.
I hae no idea, I guess we should just wait for Mr Fox to happen over this thread and help us out.
Logged
"Wanna be a better liberal? Go get shot in the fuckin' face."

Just goes to show, even a Male Doctor that Looks Like a Female and a Criminal with Poor Hygiene Habits can fall in love.

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Is there a way to edit my founders stats?
« Reply #9 on: October 05, 2012, 11:15:15 pm »

I've been following the thread, but I've never edited save files before, so I don't have any advice or insight.
Logged

Booya

  • Escaped Lunatic
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #10 on: October 05, 2012, 11:27:54 pm »

I've been following the thread, but I've never edited save files before, so I don't have any advice or insight.
Oh well. Guess I'll just have to play the old fashioned way  :'(
Logged

Darvi

  • Bay Watcher
  • <Cript> Darvi is my wifi.
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #11 on: October 06, 2012, 07:20:35 am »

Cheat engine.

How do I go about finding the correct address or whatever to edit in Cheat Engine?
With difficulty.
Logged

Miko19

  • Bay Watcher
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #12 on: October 06, 2012, 08:08:04 am »

Here you go, I use this thing myself with the most recent version to HERPDERP around in LCS:

http://www.bay12forums.com/smf/index.php?topic=89729.msg2476874#msg2476874
Logged

Blaze

  • Bay Watcher
  • The Chaos that Crawls up on you with a Smile.
    • View Profile
Re: Is there a way to edit my founders stats?
« Reply #13 on: October 13, 2012, 10:26:06 pm »

Huh, with a quick fiddling with the save, I found that you CAN edit the save directly without any particularly special programs or knowledge of the code.

If you open up your save file with notepad++ (Regular text editors ruin the save file due to not properly saving the format), you'll find a bunch of messy lines. What you're looking for is the <creature> entry. If you just want to change your founder's stats, I recommend you start a new game and edit it from there so there'll only be a single creature entry.

To edit attributes, you're looking for an entry like the following:
Code: [Select]
<attribute><attribute>-842150451</attribute><value>4</value></attribute>There are eight of these entries, and they are not marked. The only difference seems to be the <value> entry, the <attribute> entry is identical with all 8 attributes so I have no idea how to differentiate it. I suggest you match the info in the game and your save to figure out what's what.

Now, if you simply increase the value (4) into something that takes more than a single space, the save will become invalid. In order to prevent this, you'll need to make sure the code's length is the same before and after the change.

For example, if you wanted to increase the attribute above from 4 to 99, you would do something like this:
Code: [Select]
<attribute><attribute>-842150451</attribute><value>4</value></attribute>to
Code: [Select]
<attribute><attribute>-84215045</attribute><value>99</value></attribute>And if you wanted to change it to a three digit value:
Code: [Select]
<attribute><attribute>-8421504</attribute><value>999</value></attribute>
As far as I know, changing the <attribute> entry does not have any side effects.

For changing skills, you'd find this line.
Code: [Select]
<skill><associated_attribute>3</associated_attribute><skill>1</skill><value>0</value></skill>I'm assuming the <associated_attribute> entry is exactly what it says on the tin, but I haven't changed it to see if it did anything.

Unlike attributes, the <skill> entry differs between skills. Furthermore, I don't really see anything I can erase to make to make the line remain the same length. So if you have skill 0, the best you can make it is 9. If you have 10 skill, you can raise it to 99, but otherwise you'll need to raise it in-game.

Then again, if you just make your attributes ridiculously high, you'll rapidly gain skill so I don't think it's much of an issue if you're going for an uber-founder.

Some other entries you might find interesting are <age>, <money> (One false entry and one real one, the fake one should be obvious), <juice>, <crimes_suspected> (different entries for different crimes),  <itemtypename> (which is used in both character and LCS inventory), and the <armor> and <weapon> entries (Which precede <itemtypename> when used in character inventory).

But really, using a memory editor is much easier.
Logged