Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to Edit the questions?  (Read 1082 times)

Goldsaver

  • Bay Watcher
    • View Profile
How to Edit the questions?
« on: September 04, 2012, 08:16:59 pm »

Referring to the beginning of the game, I want to tweak the values of  the questions that basically sets me up with an uber-powered leader to test things. How do I edit the attribute points the questions give?
Logged

Vherid

  • Bay Watcher
  • [CREATURE:SLARK]
    • View Profile
Re: How to Edit the questions?
« Reply #1 on: September 04, 2012, 10:40:59 pm »

Referring to the beginning of the game, I want to tweak the values of  the questions that basically sets me up with an uber-powered leader to test things. How do I edit the attribute points the questions give?

Edit the source via coding, and compile your own version.

EuchreJack

  • Bay Watcher
  • Lord of Norderland - Lv 20 SKOOKUM ROC
    • View Profile
Re: How to Edit the questions?
« Reply #2 on: September 05, 2012, 01:07:05 am »

Referring to the beginning of the game, I want to tweak the values of  the questions that basically sets me up with an uber-powered leader to test things. How do I edit the attribute points the questions give?

Edit the source via coding, and compile your own version.

It's been done before, but on a much earlier version.

I also hear it is possible to edit one's savefile, and thus give your founder whatever stats and skills you wish.

Goldsaver

  • Bay Watcher
    • View Profile
Re: How to Edit the questions?
« Reply #3 on: September 05, 2012, 04:42:37 pm »

I've edited Save.dat before, it's easy enough but time-consuming and I don't want to do it every time I want to make an uber founder. I suppose I should ask where the values are located, in what file and in what line of code. That's my main problem.
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: How to Edit the questions?
« Reply #4 on: September 05, 2012, 04:56:24 pm »

I've edited Save.dat before, it's easy enough but time-consuming and I don't want to do it every time I want to make an uber founder. I suppose I should ask where the values are located, in what file and in what line of code. That's my main problem.

newgame.cpp

Starts around line 480 for the questions themselves, 780 for the effects.
Logged

Goldsaver

  • Bay Watcher
    • View Profile
Re: How to Edit the questions?
« Reply #5 on: September 05, 2012, 08:16:35 pm »

I hope I'm not missing the obvious; I have the source code, and I'm pouring over it on that SVN cilent, and looking at all the files downloaded, and I'm not seeing a newgame.cpp
I see a newgame.diff, which by my eyes just seems to be a changelog for the actual newgame file
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: How to Edit the questions?
« Reply #6 on: September 05, 2012, 11:43:56 pm »

I hope I'm not missing the obvious; I have the source code, and I'm pouring over it on that SVN cilent, and looking at all the files downloaded, and I'm not seeing a newgame.cpp
I see a newgame.diff, which by my eyes just seems to be a changelog for the actual newgame file

How exactly are you downloading and opening the file? It sounds like you might be trying to open the file through the SVN client and getting a diff between the two most recent versions of it instead of the file itself. After you use SVN update or SVN check out to download the source code, you should be able to set the SVN client aside, go to /trunk/src/title/newgame.cpp through your standard file browser on your computer, and open it like any other file in a source code editor or text editor.
Logged