I just discovered the tweaker, and made an account to express my thanks. This thing is awesome. I do have a linked pair of questions concerning it though, which I might retract if more experimentation yields an answer.
I kind of want to just sit back and play a "sim-city", build up Arcanus and Myrror to a degree that personally satisfies without worrying about the computer or playing a normal game. Which leads to
1) Is there some way to disable the victory conditions, even if all opponents are eliminated and/or I cast the spell of mastery?
2) If not, is there a way to force give a city to the AI? I figure I can effectively bottle them up by limiting them to a tiny klackon town or something else similarly worthless on one of the poles, which won't "win" but leave the 1 AI player neutered. I've noticed the city dialog in the editor, but every time I try to edit a city's owner, it defaults to giving it to me, which is hardly what I want.
But seriously, this is amazing, best wishes to you and yours.
Hello, I am interested in using the Tweaker and Customizer, but have been running into some trouble with getting them working.
I am on 64 bit ubuntu, and originally tried using the precompiled versions, but the programs were not able to attach to the process, crashing in response to the "connect" button (logs and such here: https://pastebin.com/w1y7h00p). This seemed to match up to the issue with 64 bit compatibility brought up in the customization thread, so I compiled the programs myself. However, though this changed the failure mode, it did not result in the programs working properly. They start up fine, but when I hit connect (magic.exe is already running through dosbox), they crash. The resultant outputs and logs are in the above pastebin. For reference, I am using Caster of Magic, but the errors happen the same even when I use an unmodded version of MoM. It appears that it is still failing at attaching to the process, at least in the case of the tweaker, though the customizer seems to be failing an assert, which might be indicative of some deeper problem.
I would greatly appreciate any help with getting these working, and am looking forward to hopefully being able to use your programs to spice up my MoM games.
(August 2nd, 2019, 12:12)abraxian Wrote: Hello, I am interested in using the Tweaker and Customizer, but have been running into some trouble with getting them working.
I am on 64 bit ubuntu, and originally tried using the precompiled versions, but the programs were not able to attach to the process, crashing in response to the "connect" button (logs and such here: https://pastebin.com/w1y7h00p). This seemed to match up to the issue with 64 bit compatibility brought up in the customization thread, so I compiled the programs myself. However, though this changed the failure mode, it did not result in the programs working properly. They start up fine, but when I hit connect (magic.exe is already running through dosbox), they crash. The resultant outputs and logs are in the above pastebin. For reference, I am using Caster of Magic, but the errors happen the same even when I use an unmodded version of MoM. It appears that it is still failing at attaching to the process, at least in the case of the tweaker, though the customizer seems to be failing an assert, which might be indicative of some deeper problem.
I would greatly appreciate any help with getting these working, and am looking forward to hopefully being able to use your programs to spice up my MoM games.
Hey abraxian,
The first problem is 'WARN: PTRACE_ATTACH: Operation not permitted'.
ptrace() is the function that allows one process to attach to another process, which is what the Tweaker uses.
Without it you cannot connect to MoM while it is running.
Ubuntu has presumably become a bit stricter or some such.
Perhaps you can run the Tweaker with sudo? That would probably fix the permission problem.
Alternatively you can simply open a save file, or WIZARDS.EXE, or some other file.
Then make your modifications, and save them.
It's less neat of course, since you won't be changing the game while it is running.
In your own compiled version the assert is the next problem.
It means something is wrong with your compiler and/or compiler options.
Without it no changes can be made to MoM at all since the memory offsets will all be off.
In the precompiled version, which is 32-bits, there is also a problem.
I see that it says 'Scanning 0xffffffff size 0x1'.
Presumably your dosbox is a 64-bit application?
It looks as if the 32-bit precompiled version does not like that.
You should still be able to use it to open, modify, and save files though.
(August 2nd, 2019, 13:21)I like Serena Wrote: [snip]
Hey abraxian,
The first problem is 'WARN: PTRACE_ATTACH: Operation not permitted'.
ptrace() is the function that allows one process to attach to another process, which is what the Tweaker uses.
Without it you cannot connect to MoM while it is running.
Ubuntu has presumably become a bit stricter or some such.
Perhaps you can run the Tweaker with sudo? That would probably fix the permission problem.
Alternatively you can simply open a save file, or WIZARDS.EXE, or some other file.
Then make your modifications, and save them.
It's less neat of course, since you won't be changing the game while it is running.
In your own compiled version the assert is the next problem.
It means something is wrong with your compiler and/or compiler options.
Without it no changes can be made to MoM at all since the memory offsets will all be off.
In the precompiled version, which is 32-bits, there is also a problem.
I see that it says 'Scanning 0xffffffff size 0x1'.
Presumably your dosbox is a 64-bit application?
It looks as if the 32-bit precompiled version does not like that.
You should still be able to use it to open, modify, and save files though.
Thank you for your help with this. I have not been able to get everything fixed, but I have been able to get it to a point I am satisfied with. Running the programs as su does not help, although interestingly I noticed that the PTRACE_ATTACH has gone from saying "Operation not permitted" to saying "No such process". Both programs still fail to connect to the running game. They are able to open save files, but some entries are left in what I believe to be default id 0 values, such as all units showing up as "Dwarf", and (nearly) all cities showing up as 'Barbarian""' (there are around 5 cities of a smattering of other races, but the overwhelming majority are 'Barbarian""').
I am, however, able to get both the programs to run and attach by running them in a windows 7 virtual machine. The customizer seems to mostly work (see the attachment for which options are greyed out and which are working. This has been the most I've gotten it working, so I'm not sure what the fully functional state looks like, or how it may or may not differ from what I'm seeing). The tweaker, on the other hand, appears to work fully (can change mana values, summon units and items, etc.). I don't know whether the customizer was conflicting with Caster of Magic, or what, but the changes made persist in the save file, which I can transfer over into my non-VM MoM directory and run with no problem.
As for the compilation, when I first was compiling it, the main issue that I had was qt not fully installing (which has actually been an issue for other things I've been doing). The process I did was to follow your compilation instructions until the terminal threw an error, then searching with that error, generally resulting in finding necessary packages that had not been installed. After repeating that a few times with different errors, they compiled. There may well be stuff missing that is still needed for it to work properly, but which it does not throw an error for, or junk laying around from the failed compilation. At some point, I will probably clean up all the stuff (maybe a full OS reinstall, there's a bunch of junk that has gathered over time) and try recompiling it. However, I think that is a lower priority now, given that virtualbox allows me to get the functionality I need working (just in a bit of a clunky way).
Sorry for the rambling, and thanks so much for developing these programs (and now for taking the time to help me get them working).
sh MoMTweaker.sh
./MoMTweaker-0.2.1: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
I'm not a unix expert, so maybe I'm missing some simple procedure. Permission are all read and write. Does momtweaker have to be in a specific folder?
I also tried it under raspbian (raspberry Pi 3). I got it to bring up an xterm window, but it's blank, and I can't close it. Okay, it vanished as soon as I called up taskmanger.
Recognize Seravy's v1.5+ and v5.0+ and show proper game data fields.
Load and save Caster of Magic 6.0 save game files.
The title bar will show "(MoM)" by default, "(CoM)" for Caster of Magic,
"(CoM-)" if the file is smaller than expected, and "(CoM+)" if the
file is larger than expected.
Credit to Ariphaos for providing the CoM save game layout.
Added more diplomacy information based on Seravy's comments (couple of years ago).
EDIT: Show actual spell names in the tree view instead of old hard coded names.
One bug report/feature request : Spells Known still shows the hardcoded original spell names, even if I load Spelldat.lbx before the save file. It doesn't matter for functionality but it will be confusing to users who don't know which original spell slot belongs to which CoM spell.
One bug report/feature request : Spells Known still shows the hardcoded original spell names, even if I load Spelldat.lbx before the save file. It doesn't matter for functionality but it will be confusing to users who don't know which original spell slot belongs to which CoM spell.
Fixed.
Uploaded and replaced the 0.3.1 version.
Should be okay as it looked like no one downloaded it yet.