PLATFORM:
Linux i686 (Fedora Core 14 Laughlin / linux kernel 2.6.35.9-64.fc14.i686.PAE)
SYNOPSIS:
Exult studio does not properly reflect NPC file changes in mods. It also appears to not load them properly, as several TFL NPCs are missing which were present in alpha and CVS versions that do not show up in the Exult Studio NPC editor. Newly edited NPCs also do not show up. It appears the data is not being read correctly - some NPC data (the face and body shape selected, specifically) remains, but most gets lost (stats, usecode assigned, name)
SUSPECTED CAUSE:
Possibly related to other Linux-related bugs (3138861, 3136375)
INSTANCE SPECIFICS:
This specifically happens for me when attempting to re-add NPCs for the Feudal Lands, which do not show up properly in the NPC panel. Even when adding new NPCs altogether, or editing the unused "Batlin" NPCs, the changes do not seem to stick for the most part.
WORKAROUND/FIX:
Unknown. Probably would be fixed in conjunction with the above mentioned bugs, esp. the latter, however this is a seperate bugged feature than those, so I have added a new bug.
Npcs edited in Exult Studio should now save with save all.
I applied the saving fix in revision 6603 to make sure information is saved. NPCs seem to be saving fine with the fix.
Can you give more specific information about what npcs numbers do not show up anymore? When did they last work?
Specifically I edit the unused Batlin and Batlin_monster NPCs to create NPCs for The Feudal Lands. This bug seems to break down into two component problems for me in that light:
1] The NPCs from the currenvt revision of TFL as well as previous revisions do not load properly into ES.
2] New NPC data that is edited in to correct this does not reliably save.
This bug was not present in the previous 1.2 version, built from source, as well as at least ten subsequent snapshot revisions, and represents a regression.
I have a version of TFL from 2009 and it works perfectly in Windows. If this is a case sensitivity problem, you should not use any of the recent changes you made and use your cvs backup after this is fixed.
The npc tab doesn't seem to show npc shape changes or unused status until an Exult Studio restart. It saved fine for me in Ubuntu too using the same TFL version. I'll see if I can do anything about the two updates not being show correctly.
I really need more info to know this isn't just faulty memory. Unless you can provide me any revision number for Exult that show extra NPCs that don't currently show up, what npc numbers they are and names, and the patchset version of TFL, if applicable, there's no way to know if anything is even wrong with saving or reading.
The TFL added npcs I can see offhand are:
139 Zauriel
148 Laurianna
279 Mykellah
283 Xantar
286 Iain
287 Leah
293 Maya
294 Chahiero
295 Lord Perth
296 Gypsy
I fixed apply in the npc edit window and Create NPC so that they update the npc browser. Dragging npcs that are unused will not update the browser (remove unused). I'm not sure how to fix that.
I am able to verify that this bug does not manifest on Windows Vista 64bit. It appears to be a linux, possibly Fedora, specific bug.
Also, I tested the memory with memtest86. Its perfectly fine, if running slower than it could be because my CPUs FSB is slower than the RAMs rated speed. Muskhkin Silverline 4gb x2 DDR3 rated at 1600mhz.
As to memory corruption because of applications loaded, I find that exceedingly unlikely. Even running Exult with all non-essential programs loaded in memory and freeing out the empty memory results in this problem, and thats a much cleaner test environment than some people would be working under.
It is much more probably linked to these load path errors under Linux, as the game does not load all of the NPC data to begin with, and loading the MOD in Linux results in it complaining about missing ifix files that are clearly there. Permissions were changed to ensure that wasn't the problem, so Im not sure what that's about, but it seems likely that this error is connected to the others I've submitted, and Linux filesystem related.
One possibility is that it is possible that SELinux policies that are default in Fedora could be denying access to the files, but Im not knowledgeable enough of SELinux to know how to test that hypothesis.
I just tried the TFL release and latest CVS in Ubuntu and no problems.
SELinux is the likely problem. Exult communicates with Exult Studio via sockets. You can set it to SELinux Permissive so that it lists problems but still allows execution.
You should be able to create a script that runs setenforce before and after Exult is launched until you can figure out the permissions.
That still doesn't explain why its not loading the NPC data properly, which I imagine is related to the pathing errors.
Also, whats curious to me is that if it is SELinux, why does dragging shapes etc work? But not NPCs?
If you will not disable SELinux to test, I will close this thread.
Exult Studio reads the npcs from Exult. You can drag items from Dev games into BG or SI (or BG into SI, etc). I think Exult Studio only sends shape number and frame (Exult handles the rest.)
Have you had a chance to try disabling SELinux to see if it works?
After modifying several settings, and even disabling SELinux without effect, I think I can safely say it isn't SELinux. What it -is- I can't say, as that was pretty much my one guess.
Again, NPCs and Objects work fine, though there are occasional weird graphical errors trying to draw the shape being dragged. NPCs, however, do not.
Can you describe a method to reproduce this? I am not sure I understood what exactly is the bug being reported.