Map-mods load mod while preview #3759
Comments
vexed changed priority from |
Cyp commented Is there a specific map-mod I can test this with? I tried making a map-mod with graffiti on all the tiles, but couldn't reproduce. |
Reg312 commented Well, i've made map mod with some changes in stats testing noticeable option - oli derrick with 100$ price (in original game derricka are 0$)
|
Cyp commented I still cannot reproduce — in step 5), the derrick is still 0$. I'm using Linux, and a patched (against #3700) physfs 2.0.2. Which OS, and if Linux, which version of physfs are you using? Can anyone else reproduce? |
Reg312 commented i'm using Windows 7 and i dont know anout physfs version i use warzone from normal installation of version rc3 @Cyp try to load mooded map and play, do you see 100$ price of derrick in that map-mod? |
Cyp commented If playing the modded map, I see 100$ derricks. If previewing and then playing a different map, I don't. I tested both bugfixes branch and 3.1_rc3, both in single-player skirmish and multiplayer mode. |
Reg312 commented seem that is windows bug, i can reproduce this many times also i tested on my onw windows build (vs2010) from latest master branch and bug was reproduced may be you can point me to some place in code or i can try replace physfs lib or what? |
Cyp commented Think the rebuildSearchPath() function in src/init.cpp should be responsible for unmounting old maps, not completely sure. Since 15c04ab10f87de89ca7dcae2813834bd1a03247b, the rebuildSearchPath() function in src/init.cpp mounts only the current map (if any), instead of mounting all maps (and map-mods) at once. Previewing a map should load/mount map-mods, but then previewing or selecting another map should result in the map-mods being unloaded/unmounted again. Maybe around there could be somewhere to start looking, not sure. |
Reg312 commented rebuildSearchPath() always process only 2 paths ..\Data].. with standard subdirectories (mp,base,mods\autoload etc.) i could not find paths related to map |
Cyp commented From rebuildSearchPath(), should be the relevant code:
and
|
Reg312 commented well i see added value: removed value: |
Cyp commented That sounds platform-specific... Maybe some kind of abuse of PHYSFS_getDirSeparator() when removing? |
Reg312 commented tried few things in debug i think dirSeparator processed correctly
@Cyp may be you can point me to place in code where results of PHYSFS search paths used to load stuff. i need method to watch current list of paths.. |
Cyp commented The '' probably comes from removeSubdirs() in src/main.cpp. There's also a addSubdirs() there. No idea if hardcoding a '/' there would break other stuff. I don't understand the '/' vs '' stuff (my system only uses '/'), so can't really help. |
Reg312 commented
|
vexed commented Replying to Warzone2100/old-trac-import#3759 (comment:15):
That shouldn't cause any issues.
You need to compile 2.0.3 yourself.
Do --debug=all (maybe --debug=wz) to see paths and what it mounts / unmounts. |
anonymous commented probably related:
|
Reg312 uploaded file |
Reg312 changed _comment0 which not transferred by tractive |
Reg312 commented attached log with debug=all
Where i can download Warzone release for windows with another version of PhysicsFS? |
NoQ changed _comment0 which not transferred by tractive |
NoQ commented anonymous: nice catch, btw. I always wondered why challenge maps have stopped working since 3.1_beta11, together with installing ai mods into maps folder. This leads us straight to the time interval between beta10 and beta11, and also an easier way of reproducing the bug (if it's actually related). |
Reg312 commented Tested this bug on latest bugfixes build from BuildBot from 6-december-2012 |
Reg312 commented just noticed oil derrick already have 100$ in master, so my debug probes was wrong :( i dont know how fix it with sanity, spent hours on it tried following:
so i made bad patch, but it works for me on my crappy windows EXPORT int PHYSFS_addToSearchPath ( const char * newDir, |
Reg312 changed _comment0 which not transferred by tractive |
Reg312 uploaded file bad patch |
Per uploaded file I wonder if this patch makes any difference. At least it will clean up some very crazy, related code. |
Reg312 uploaded file |
Reg312 uploaded file Map-mod for debug&test |
Per changed status from |
Per changed resolution from `` to |
Per commented Fixed in 1fd7036f25949dfd465e8ac2e694f7c32c63f6cf |
resolution_fixed
type_bug
| by Reg312Map-mods problem in RC3
Sorry if this problem was already mentioned somwhere
Steps:
make map-mod with modified stats
put map-mod in maps folder
load WZ and try to preview map-mod in start game screen
(just move mouse on map-mod in l\ist of maps)
if you did not previeed map-mod then you can play another maps without problems (without mod loading)
result: mod loaded from modded map which you just previewed
this bug also results in MP
when players auto-kicked due to incompatible-mod
version 3.1 rc3
Issue migrated from trac:3759 at 2022-04-16 10:40:23 -0700
The text was updated successfully, but these errors were encountered: