Last edited by coolgit; August 15, 2012 at 10:27 AM.
Your schema 20 from the OP is wrong. You are missing 1 column in agent table.....faction total cap below religion.
Why the references would work with release version but not with the Alpha, I don't know.
Why the references don't work with your schema file, I do know: you renamed some tables that were referenced from others, but didn't correct the reference entry.
Don't worry about that though, I'll correct the references when integrating the names (I did forget about it myself as well in the first go)
Tools: MMS 1.3 - PFM 2.4.1 - EditSF 1.0.7
Minor TW Tools: Savegame Autobackup, RandomSeedChanger, Replay Browser, Preference Editor
My mods: Extended Camera - No Handicap on Normal - Add occupation resistance to AI - FotS Defenses Rebalance
If you're artistically inclined, I could do with some icons for my mods and tools....
Hopefully I'll get around to posting vids in my YouTube channel at one time.
Respecto Patronum
This is one of those cases where the agents_tables with version 0 is different in 2 pack files: main.pack doesn't have the total cap int, patch2.pack does. I added the int to agent_tables to make the more recent file accessible; you'll need to remove it from the definitions using the decode tool if you want to mess around with it in main.pack.
I uploaded schema_22.zip now with both coolgit's and Jinarik's definition entries added. I'm sure they overlapped but since they were both taken from the DBE's xsd, I hope the difference isn't too huge. I ignore tables with names "unknown" (or "Unknown") when integrating so as not to overwrite names that may have existed already.
DB test log file using the latest schema attached.
Tools: MMS 1.3 - PFM 2.4.1 - EditSF 1.0.7
Minor TW Tools: Savegame Autobackup, RandomSeedChanger, Replay Browser, Preference Editor
My mods: Extended Camera - No Handicap on Normal - Add occupation resistance to AI - FotS Defenses Rebalance
If you're artistically inclined, I could do with some icons for my mods and tools....
Hopefully I'll get around to posting vids in my YouTube channel at one time.
Respecto Patronum
running error
What is that message?
Spoiler Alert, click show to read:
Tools: MMS 1.3 - PFM 2.4.1 - EditSF 1.0.7
Minor TW Tools: Savegame Autobackup, RandomSeedChanger, Replay Browser, Preference Editor
My mods: Extended Camera - No Handicap on Normal - Add occupation resistance to AI - FotS Defenses Rebalance
If you're artistically inclined, I could do with some icons for my mods and tools....
Hopefully I'll get around to posting vids in my YouTube channel at one time.
Respecto Patronum
sorry~;
Check attached file
Last edited by Neptune4394; August 17, 2012 at 06:59 AM.
That means that a) I should give more expressive error messages - the file name would have been nice to be included - and b) that you either copied a pack from your Rome2 installation into an E/N/STW directoryor you have a mod installed contained in a pack containing that header which I've never seen before.
You should probably find out what file it is that's causing the problem. Move all mod files out of the installation folder and start PFM; that should work. Then move the files back in one by one and start PFM every time to see what file was causing it.
Once you have it, you'd need to open it in a Hex Editor and change the 4th byte (should be "4") to "3". That should then enable the PFM to start again.
Also let us know what the file was, maybe post it here or link to where you got it.
Or it's a CA file and it's been added yesterday so I missed it. Then I'll need to adjust the software and you'll have to wait until next week.
Tools: MMS 1.3 - PFM 2.4.1 - EditSF 1.0.7
Minor TW Tools: Savegame Autobackup, RandomSeedChanger, Replay Browser, Preference Editor
My mods: Extended Camera - No Handicap on Normal - Add occupation resistance to AI - FotS Defenses Rebalance
If you're artistically inclined, I could do with some icons for my mods and tools....
Hopefully I'll get around to posting vids in my YouTube channel at one time.
Respecto Patronum
Yes, of course.
Tools: MMS 1.3 - PFM 2.4.1 - EditSF 1.0.7
Minor TW Tools: Savegame Autobackup, RandomSeedChanger, Replay Browser, Preference Editor
My mods: Extended Camera - No Handicap on Normal - Add occupation resistance to AI - FotS Defenses Rebalance
If you're artistically inclined, I could do with some icons for my mods and tools....
Hopefully I'll get around to posting vids in my YouTube channel at one time.
Respecto Patronum
I copied everything from the 2.2 zip into a folder and pressed run. After I pressed cancel on NTW I got this screen:
![]()
Takeda - a Shogun 2 AAR (Completed) Reviewed by Radzeer
My writing | My art | About me | MAARC | TotW
~~~Under the proud patronage of Radzeer, Rogue Bodemloze. Patron of Noif de Bodemloze and Heiro de Bodemloze~~~
The game tries to write a file into its installation folder but fails.
Did you unpack as admin and then run as a normal user? Looks like.
If so, start it as admin once (to identify the games on your computer), then you should be able to start it normally as your usual user.
Tools: MMS 1.3 - PFM 2.4.1 - EditSF 1.0.7
Minor TW Tools: Savegame Autobackup, RandomSeedChanger, Replay Browser, Preference Editor
My mods: Extended Camera - No Handicap on Normal - Add occupation resistance to AI - FotS Defenses Rebalance
If you're artistically inclined, I could do with some icons for my mods and tools....
Hopefully I'll get around to posting vids in my YouTube channel at one time.
Respecto Patronum
Takeda - a Shogun 2 AAR (Completed) Reviewed by Radzeer
My writing | My art | About me | MAARC | TotW
~~~Under the proud patronage of Radzeer, Rogue Bodemloze. Patron of Noif de Bodemloze and Heiro de Bodemloze~~~
This latest version of PFM is faulty, many mods including mine cant be open properly in this version. It just cant read most modded db tables.
Same here....I can't edit anything.
Red letters everywhere....
Sorry Daniu
Rep me, rep you. GIMME REP
Mods that I've made for Shogun 2:
Bayonets for FoTS: http://www.twcenter.net/forums/showthread.php?t=538081
IGdood's unit Packs: www.twcenter.net/forums/showthread.php?p=11277523
Kisho Ninja Unit Leader Tweak http://www.twcenter.net/forums/showthread.php?t=522431
Thought a while about what the problem could be because all the actual game files open fine, and I think I figured it out. I don't think it's actually the PFM that's the problem but the db files you're working on; still not your fault however. I'll need to go into a little more detail.
The structure DB files in ETW and NTW were determined by a combination of the table's name (basically the directory they're in) and a version; starting with STW, a GUID (Globally Unique ID) is also included. The old PFM versions always looked up the definition by table name/version and ignored the GUID altogether. When the new PFM tries to open a file, it first checks whether it has a definition for the table's GUID; if not, it tries to use the name/version one.
My assumption is that the files you're working on have initially been created from an older version, then updated them. This however did not change the GUID contained in the file because it ignored it anyway, and the game didn't care either (it's also never been possible to manually change the GUID). If the new PFM now tries to open this file, it uses the obsolete GUID for the lookup and therefore uses an incorrect schema so it can't open the file. That behavior in itself is correct, but that doesn't help a lot obviouslyI could go back to using the old lookup system but that has other problems: it won't be able to open some game files because for some of them, the name/version are the same but the structure differs (so they can only be told apart by the GUID).
I'll write up a tool to automatically find a GUID for the db files in your packs. It'll be a standalone one for the time being; I'll integrate something like it in the PFM later.
Tools: MMS 1.3 - PFM 2.4.1 - EditSF 1.0.7
Minor TW Tools: Savegame Autobackup, RandomSeedChanger, Replay Browser, Preference Editor
My mods: Extended Camera - No Handicap on Normal - Add occupation resistance to AI - FotS Defenses Rebalance
If you're artistically inclined, I could do with some icons for my mods and tools....
Hopefully I'll get around to posting vids in my YouTube channel at one time.
Respecto Patronum
I'm also having a problem with modded pack files opening incorrectly. Of the mods I am currently using (e.g. DarthMod, Demokritos ACC) almost none of the tables are editable. Specifically, when I try to open a specific table, I get a single blank column.
Thanks for the response Daniu; you really know what's happening!
Rep me, rep you. GIMME REP
Mods that I've made for Shogun 2:
Bayonets for FoTS: http://www.twcenter.net/forums/showthread.php?t=538081
IGdood's unit Packs: www.twcenter.net/forums/showthread.php?p=11277523
Kisho Ninja Unit Leader Tweak http://www.twcenter.net/forums/showthread.php?t=522431
There are currently 2 users browsing this thread. (0 members and 2 guests)