Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
Real-Time Game Tweaker

(October 22nd, 2015, 14:35)Seravy Wrote: "I've always been rather prissy of not allowing any crashes to creep into the tweaker, and I don't want any in there now."

I actually get crashes regularly. Not while using the tweaker, don't think that ever happened, but when I don't use it for a while and leave it open, and then start a game and hit connect later, it crashes about half the time. Opening a fresh one always works without a problem.
I checked a couple of times what happens if I connect and open all sorts of stuff, and then close the game, start another, and connect to it.
However, I'm not getting a crash. Do you?
--I like ILSe
Reply

(October 26th, 2015, 15:55)I like Serena Wrote:
(October 22nd, 2015, 14:35)Seravy Wrote: "I've always been rather prissy of not allowing any crashes to creep into the tweaker, and I don't want any in there now."

I actually get crashes regularly. Not while using the tweaker, don't think that ever happened, but when I don't use it for a while and leave it open, and then start a game and hit connect later, it crashes about half the time. Opening a fresh one always works without a problem.
I checked a couple of times what happens if I connect and open all sorts of stuff, and then close the game, start another, and connect to it.
However, I'm not getting a crash. Do you?

Not yet in the current version. Haven't had much time to play the game, though, with all the diplomacy investigation going on.
Reply

Okay here's a screenshot of what it looks like for me on windows 7 64 bit. The font is smaller, not sure why it would be showing as bigger for you though.

When i connect to a 1.40n game, half the time clicking the map button causes the tweaker to crash with no error message or very shortly after the map window opens up. I cant open it now because it crashes instantly, the error log file says :

Code:
Could not find LOCAL_DIRECTORY
Could not open file 'WIZARDS.EXE'
Could not (fully) read file 'WIZARDS.EXE'
Could not open file '/FONTS.LBX'
Could not open file '/BACKGRND.LBX'
Could not open file '/CITYSCAP.LBX'
Could not open file '/MAPBACK.LBX'
Could not open file '/CMBTCITY.LBX'
Could not open file '/CITYWALL.LBX'
Could not open file '/FIGURES1.LBX'
Could not open file '/FIGURES2.LBX'
Could not open file '/FIGURES3.LBX'
Could not open file '/FIGURES4.LBX'
Could not open file '/FIGURES5.LBX'
Could not open file '/FIGURES6.LBX'
Could not open file '/FIGURES7.LBX'
Could not open file '/FIGURES8.LBX'
Could not open file '/FIGURES9.LBX'
Could not open file '/FIGURE10.LBX'
Could not open file '/FIGURE11.LBX'
Could not open file '/FIGURE12.LBX'
Could not open file '/FIGURE13.LBX'
Could not open file '/FIGURE14.LBX'
Could not open file '/FIGURE15.LBX'
Could not open file '/FIGURE16.LBX'
Could not open file '/ITEMISC.LBX'
Could not open file '/ITEMS.LBX'
Could not open file '/MAPBACK.LBX'
Could not open file '/RELOAD.LBX'
Could not open file '/SPECIAL.LBX'
Could not open file '/SPECIAL2.LBX'
Could not open file '/UNITS1.LBX'
Could not open file '/CITYSCAP.LBX'
Could not open file '/CMBGRASS.LBX'
Could not open file '/TERRAIN.LBX'
Could not open file '/HELP.LBX'
Could not open file '/MAPBACK.LBX'
Could not open file '/MAPBACK.LBX'

I tried copying all the tweaker files into the main MOM directory (where all those lbx files are) but the same thing happens with the same error log output.

2.8 will let me open the map screen in the tweaker and it looks like the second screenshot.


Attached Files Thumbnail(s)
       
Reply

Also changing the max city pop in the tweaker doesn't appear to do anything (or the max is set at 25, i tried changing it to 30 and it didnt work)
Reply

(October 27th, 2015, 20:19)Question Wrote:
Code:
Could not find LOCAL_DIRECTORY
That shows there's something seriously wrong and the tweaker cannot properly connect to the game.
Can you show the logging that came before?

(October 29th, 2015, 06:27)Question Wrote: Also changing the max city pop in the tweaker doesn't appear to do anything (or the max is set at 25, i tried changing it to 30 and it didnt work)
How do you know it didn't work?
It should allow cities to grow over 25 pop - provided they can generate the amount of food needed to grow that large.
Currently the maximum size is truncated at 25, which is what can be changed.
--I like ILSe
Reply

The weird part is with 2.8 i can open the map window, but 2.9 crashes when i try.

Here's the log file part :

Code:
Output tee'ed from cout
Output tee'ed from cerr
Found MoM Window 'DOSBox 0.73, Cpu Cycles:      max, Frameskip  0, Program:    MAGIC' (hwnd=0xc51078)
Opened MoM process (processId=0x2cd8)
Found MoM BaseAddress 0x90f0000 with size 0x1001000
MoM Data Segment (DS) Identifier (size 47) is at offset 0x28370
Found MoM Data Segment (DS_SEG0) Offset as 2835:0
Hex sequence was: ba 35 28 2e 89 16 c4 02
Could not find LOCAL_DIRECTORY

I tried giving a city gaia's blessing + 3 wild game bonuses and it was still capped at 25 pop. I'm guessing there's another limiter somewhere.
Reply

I was able to summon a hero in a game, but now when i try to click on Serena in the drop down list, the tweaker instantly crashes. Error log :

Code:
Output tee'ed from cout
Output tee'ed from cerr
Found MoM Window 'DOSBox 0.73, Cpu Cycles:      max, Frameskip  0, Program:    MAGIC' (hwnd=0x1c40aa8)
Opened MoM process (processId=0x2aec)
WARN: ReadProcessMemory failed with error 0x12b (Only part of a ReadProcessMemory or WriteProcessMemory request was completed)
Failure was in virtual memory at baseAddr 0x74d0000, BaseAddress=0x74d0000, RegionSize=0x240000, AllocationBase=0x74d0000, AllocationProtect=0x404, State=0x1000, Protect=0x404, Type=0x20000
Found MoM BaseAddress 0xa710000 with size 0x1001000
MoM Data Segment (DS) Identifier (size 47) is at offset 0x28370
Found MoM Data Segment (DS_SEG0) Offset as 2835:0
Hex sequence was: ba 35 28 2e 89 16 c4 02
Could not find LOCAL_DIRECTORY
Could not open file 'WIZARDS.EXE'
Could not (fully) read file 'WIZARDS.EXE'
Could not open file '/FONTS.LBX'
Could not open file '/BACKGRND.LBX'
Could not open file '/CITYSCAP.LBX'
Could not open file '/MAPBACK.LBX'
Could not open file '/CMBTCITY.LBX'
Could not open file '/CITYWALL.LBX'
Could not open file '/FIGURES1.LBX'
Could not open file '/FIGURES2.LBX'
Could not open file '/FIGURES3.LBX'
Could not open file '/FIGURES4.LBX'
Could not open file '/FIGURES5.LBX'
Could not open file '/FIGURES6.LBX'
Could not open file '/FIGURES7.LBX'
Could not open file '/FIGURES8.LBX'
Could not open file '/FIGURES9.LBX'
Could not open file '/FIGURE10.LBX'
Could not open file '/FIGURE11.LBX'
Could not open file '/FIGURE12.LBX'
Could not open file '/FIGURE13.LBX'
Could not open file '/FIGURE14.LBX'
Could not open file '/FIGURE15.LBX'
Could not open file '/FIGURE16.LBX'
Could not open file '/ITEMISC.LBX'
Could not open file '/ITEMS.LBX'
Could not open file '/MAPBACK.LBX'
Could not open file '/RELOAD.LBX'
Could not open file '/SPECIAL.LBX'
Could not open file '/SPECIAL2.LBX'
Could not open file '/UNITS1.LBX'
Could not open file '/CITYSCAP.LBX'
Could not open file '/CMBGRASS.LBX'
Could not open file '/TERRAIN.LBX'
Could not open file '/HELP.LBX'
Could not open file '/CMBMAGIC.LBX'

Does the summon option only work if that particular hero has been added to the current game?

Some questions regarding spelldat.lbx :

-I noticed that changing a spell like web from unresistable to resistable would make it do a resistance check, is it possible to add a function that lets you edit the save modifier? There's only a small list of spell saves in wizards.exe that can be edited through the tweaker.

-I tried typing "8, 14" into the parameter field of the spell data table (to give wall of stone the nature eye functionality) but when i finish typing it, the field instantly clears itself? Right clicking also does not give me the usual pop up menu with some of the other spells that let you specify the parameter.

-I'm guessing the desirability field is for how much the AI wants to trade for a particular spell? Some weird values here...some common spells are worth as much as very rare spells. Is it possible to change the AI's desire to cast a particular spell though?

-What do i do if i want to disable a spell entirely? (Prevent it from being researched, obtained, etc)

-When clicking on the name of the spell, the tweaker lets you change it, but in other tables, you can click on the name and then type the first letter to jump instantly to the name starting with that letter. You can't do that in the spell table because it will overwrite the spell name with whatever you typed. Is this normal?

For magic.exe, does the total landmass size include water, or only land tiles? Is it possible to reduce the amount of water tiles instead of increasing the min continent landmass tiles? Increasing the min continent landmass tiles by even a small amount will constantly cause the game to freeze at map generation for some odd reason, even though the game is perfectly capable of generating large continents on default settings.

For the diplomacy function, how do you change the relations with other wizards? Everytime i change the number under "Current wizard relations" for your wizard, it immediately resets back to the original value.
Reply

(October 30th, 2015, 07:48)Question Wrote: -I tried typing "8, 14" into the parameter field of the spell data table (to give wall of stone the nature eye functionality) but when i finish typing it, the field instantly clears itself? Right clicking also does not give me the usual pop up menu with some of the other spells that let you specify the parameter.

For that to work you also need to change the effect coding and the AI coding, otherwise it will not work properly, some effects will switch others not. In general it's not safe to move spells around unless you know how the code works.

Quote:-I'm guessing the desirability field is for how much the AI wants to trade for a particular spell? Some weird values here...some common spells are worth as much as very rare spells. Is it possible to change the AI's desire to cast a particular spell though?
The AI adds weights for rarity, this is a modifier added after that.

Quote:-What do i do if i want to disable a spell entirely? (Prevent it from being researched, obtained, etc)
There is no way to do that. You can overwrite it with an entirely new spell, though. However if it's something the AI uses, that can crash the game if the new spell is a different type.

Quote:For the diplomacy function, how do you change the relations with other wizards? Everytime i change the number under "Current wizard relations" for your wizard, it immediately resets back to the original value.
You also need to change it for the other wizard's relation with you, the two values are synchronized every turn.
Reply

Ah i see, thanks.

But the tweaker will let me swap the parameter field around though, IF it has an actual word in it (e.g. resist elements). All i have to do is right click it. Right clicking doesnt work if its just a unmber though.

Is it possible to change the AI's desire to cast a particular spell then?

How do you overwrite a spell?

Do you mean that i need to edit both the current wizard relations field and the one in the target wizard? Or the unk_xxx relation fields as well?

I'm still unable to get the manage cities function to work correctly...it looks like its supposed to apply a queue to your cities, and then the cities build them automatically without the "xxx has finished building yyy" popup. I'm still sporadically getting the popup though. Some of the info in the window also appears to be wrong (gold/hammers/food, see screenshot).

And for the second last city in the list, i tried changing it to trade goods, and then wanted to set it back to growth, but everytime i do so, the tweaker forces it back to Player for some reason. I'm also confused as to how the "city completion queue" under "game data" relates to the manage cities window...does anyone have any idea how to use this, and whether it will let you auto-buy buildings without the annoying popup each turn?


Attached Files Thumbnail(s)
   
Reply

(October 29th, 2015, 18:55)Question Wrote: The weird part is with 2.8 i can open the map window, but 2.9 crashes when i try.

Here's the log file part :
The tweaker can't figure out where your game directory is.
As a result, connecting to the game still works, but every feature that needs to access files in the game directory, will either be crippled, or, horrors, it crashes.

What is the directory location of your MoM game?
And how did you configure DOSBox for it?


Quote:I tried giving a city gaia's blessing + 3 wild game bonuses and it was still capped at 25 pop. I'm guessing there's another limiter somewhere.
Okay. I've created 38 for it. Will get back to that later.


(October 30th, 2015, 07:48)Question Wrote: Does the summon option only work if that particular hero has been added to the current game?
There's no limitations. Any problem you have will be caused by the tweaker being unable to find the game directory.

Quote:Some questions regarding spelldat.lbx :

-I noticed that changing a spell like web from unresistable to resistable would make it do a resistance check, is it possible to add a function that lets you edit the save modifier? There's only a small list of spell saves in wizards.exe that can be edited through the tweaker.
They are hard coded. Kyrub changed Insecticide actually with the express purpose so that tweaker can change at least all of the ones that have a save modifier.

Quote:-I tried typing "8, 14" into the parameter field of the spell data table (to give wall of stone the nature eye functionality) but when i finish typing it, the field instantly clears itself? Right clicking also does not give me the usual pop up menu with some of the other spells that let you specify the parameter.
Quote:-When clicking on the name of the spell, the tweaker lets you change it, but in other tables, you can click on the name and then type the first letter to jump instantly to the name starting with that letter. You can't do that in the spell table because it will overwrite the spell name with whatever you typed. Is this normal?
Tweaker let's you edit stuff if possible. Otherwise it will only allow selection, sometimes allowing a number to be typed. Or otherwise only a selection. It all depends on what is possible.

Quote:-What do i do if i want to disable a spell entirely? (Prevent it from being researched, obtained, etc)
One way to do it is to edit each of the wizards in the game so that they don't have the spell.


Quote:For magic.exe, does the total landmass size include water, or only land tiles? Is it possible to reduce the amount of water tiles instead of increasing the min continent landmass tiles? Increasing the min continent landmass tiles by even a small amount will constantly cause the game to freeze at map generation for some odd reason, even though the game is perfectly capable of generating large continents on default settings.
Haven't looked into that for a long while. Tweaker only gives basic access to the numbers that are there.
Kyrub did a lot more in 1.40n, which has stable huge land mass.
--I like ILSe
Reply



Forum Jump: