Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload last spawned vehicle does not work under linux #3099

Open
Ian2020 opened this issue Oct 29, 2023 · 2 comments
Open

Reload last spawned vehicle does not work under linux #3099

Ian2020 opened this issue Oct 29, 2023 · 2 comments

Comments

@Ian2020
Copy link
Contributor

Ian2020 commented Oct 29, 2023

I have tried with the last release and latest dev (CIBuild-680-commit-189ca4f541a2ab98f367ba56bc8e8c85f4660ae4). If I make a change to e.g. a truck file or a texture png and hit reload, nothing changes. If I exit the game and come back in I then see the change. The logs look like the game is doing the right thing, it's just that nothing changes. For example I tried reloading concrete-form1 from https://forum.rigsofrods.org/resources/fidoj-and-negice-load-pack.111/ after messing with its textures:

14:50:21: Destroying resource group bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip
14:50:21: Unloading resource group bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip
14:50:21: Finished unloading resource group bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip
14:50:21: Creating resource group bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip
14:50:21: Added resource location '/home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip' of type 'Zip' to resource group 'bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip'
14:50:21: Added resource location '/opt/rigs_of_rods/ror/resources/managed_materials/shadows/pssm/on' of type 'FileSystem' to resource group 'bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip'
14:50:21: Added resource location '/opt/rigs_of_rods/ror/resources/managed_materials/texture' of type 'FileSystem' to resource group 'bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip'
14:50:21: Added resource location '/opt/rigs_of_rods/ror/resources/managed_materials' of type 'FileSystem' to resource group 'bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip'
14:50:21: [RoR|ContentManager] Loading resource pack "textures" to group "bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip" (ZIP archive)
14:50:21: Added resource location '/opt/rigs_of_rods/ror/resources/textures.zip' of type 'Zip' to resource group 'bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip'
14:50:21: [RoR|ContentManager] Loading resource pack "materials" to group "bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip" (ZIP archive)
14:50:21: Added resource location '/opt/rigs_of_rods/ror/resources/materials.zip' of type 'Zip' to resource group 'bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip'
14:50:21: [RoR|ContentManager] Loading resource pack "meshes" to group "bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip" (ZIP archive)
14:50:21: Added resource location '/opt/rigs_of_rods/ror/resources/meshes.zip' of type 'Zip' to resource group 'bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip'
14:50:21: Initialising resource group bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip
14:50:21: Parsing scripts for resource group bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip
14:50:21: Parsing script depthshadows.program
14:50:21: Parsing script nicemetal_mm.program
14:50:21: Parsing script general.program
14:50:21: Parsing script nicemetal.program
14:50:21: Parsing script shadows.material
14:50:21: Parsing script shadows_depth.material
14:50:21: Parsing script texture_manager.material
14:50:21: Parsing script managed_mats.material
14:50:21: Parsing script managed_mats_vehicles.material
14:50:21: Error: ScriptCompiler - base object not found in managed_mats_vehicles.material(103): Shadows/managed/base_receiver
14:50:21: Warning: ScriptCompiler - deprecated symbol in texture_manager.material(16): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in texture_manager.material(16): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in texture_manager.material(16): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Parsing script managed_mats_vehicles_nicemetal.material
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_mats_vehicles_nicemetal.material(56): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_mats_vehicles_nicemetal.material(123): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_mats_vehicles_nicemetal.material(181): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Parsing script managed_mats_vehicles_transparent.material
14:50:21: Warning: ScriptCompiler - deprecated symbol in texture_manager.material(16): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in texture_manager.material(16): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in texture_manager.material(16): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Parsing script managed_mats_vehicles_transparent_nicemetal.material
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_mats_vehicles_transparent_nicemetal.material(59): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Error: ScriptCompiler - fewer parameters expected in managed_mats_vehicles_transparent_nicemetal.material(125): texture_alias must have at most 1 argument
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_mats_vehicles_transparent_nicemetal.material(130): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_mats_vehicles_transparent_nicemetal.material(191): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Parsing script managed_submesh.material
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_submesh.material(98): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_submesh.material(203): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_submesh.material(298): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in managed_submesh.material(402): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Parsing script character.material
14:50:21: Parsing script eurosigns.material
14:50:21: Parsing script ferryslip.material
14:50:21: Parsing script floatingdocks.material
14:50:21: Parsing script fresnel.material
14:50:21: Parsing script general.material
14:50:21: Warning: ScriptCompiler - deprecated symbol in general.material(308): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in general.material(376): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Parsing script grass.material
14:50:21: Parsing script hangar.material
14:50:21: Parsing script largedocks.material
14:50:21: Parsing script load-spawner.material
14:50:21: Parsing script marina.material
14:50:21: Parsing script open-truck-spawner.material
14:50:21: Parsing script ror.material
14:50:21: Warning: ScriptCompiler - deprecated symbol in ror.material(226): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in ror.material(242): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in ror.material(259): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in ror.material(1919): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in ror.material(1938): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in ror.material(1957): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Warning: ScriptCompiler - deprecated symbol in ror.material(1976): 'cubic_texture ..'. Use 'texture .. cubic' instead.
14:50:21: Parsing script runway.material
14:50:21: Parsing script trafficlights.material
14:50:21: Parsing script train_platform.material
14:50:21: Parsing script train_rails.material
14:50:21: Parsing script truckshop.material
14:50:21: Parsing script character.material
14:50:21: Finished parsing scripts for resource group bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip
14:50:21: Creating resources for group bundle /home/ian/.rigsofrods/mods/Load-pack-fidoj-ice.zip
14:50:21: All done
14:50:21:  ===== LOADING VEHICLE: 
14:50:21: [RoR] Parsing truckfile 'concrete-form1.load'
14:50:21:  == Validating vehicle: concrete-form1
14:50:21:  == Spawning vehicle: concrete-form1
14:50:21: Mesh: Loading concreteform1.mesh.
14:50:21: Warning: concreteform1.mesh is an older format ([MeshSerializer_v1.41]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
14:50:21: Texture 'concreteforms.png': Loading 1 faces(PF_R8G8B8,1024x1024x1) with 5 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,1024x1024x1.
14:50:21: Texture 'concreteforms-shiny.png': Loading 1 faces(PF_R8G8B8,1024x1024x1) with 5 hardware generated mipmaps from Image. Internal format is PF_R8G8B8,1024x1024x1.
14:50:21: TOTAL VEHICLE MASS: 13313 kg
14:50:21: SoundScriptInstance: instance created: defaults.soundscript-1-3
14:50:21: SoundScriptInstance: instance created: defaults.soundscript-1-4
14:50:21: SoundScriptInstance: instance created: defaults.soundscript-1-5
14:50:21:  ===== DONE LOADING VEHICLE
14:50:31: [RoR|CVar]             sim_state:  "2" (was: "1")
@ohlidalp
Copy link
Member

Hello,
sorry about the late reply. I already noticed and fixed this in my current working branch #3096. It's a segfault so it shows nothing in log and it's actually platform-agnostic. This is the relevant commit: 509107f. I expect to merge the branch this weekend, next week latest.

@Ian2020
Copy link
Contributor Author

Ian2020 commented Nov 11, 2023

Amazing thank you - its such a time suck reloading the game to test minor mod changes. I'll be trying your commit once merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants