Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to edit & reload zipped mod #2452

Closed
CuriousMike56 opened this issue Oct 2, 2019 · 2 comments
Closed

Unable to edit & reload zipped mod #2452

CuriousMike56 opened this issue Oct 2, 2019 · 2 comments

Comments

@CuriousMike56
Copy link
Collaborator

  • Launch RoR and spawn a vehicle (keep it open)
  • Open the vehicle's zip using Windows File Explorer (other zip managers such as 7-zip do not allow zip updates while RoR is opened), drag the .truck file onto your desktop
  • Make any change
  • Drag the .truck back into the zip, overwriting when prompted
  • Try to reload the vehicle:
    image
@ohlidalp
Copy link
Member

ohlidalp commented Oct 7, 2019

This is never going to work, when the ZIP bundle is in use by OGRE resource system, it's in use, and the fact MSWindows lets you make underhanded edits to it doesn't make any difference.

I reproduced it and this is what I got in RoR.log:

14:28:47: Ogre::FileNotFoundException::FileNotFoundException: Corrupted archive 'C:\Users\myusername\Builds\rigs-of-rods\bin\content\dafsemi.zip' in Ogre::`anonymous-namespace'::ZipArchive::open at C:\Users\myusername\.conan\data\OGRE\1.11.6-with-patches\anotherfoxguy\stable\build\5e54358c0c0ecfa815ddb9f685f86696c1ff2c91\OgreMain\src\OgreZip.cpp (line 265)

I don't have a Linux box for testing but I'm sure it simply wouldn't let me change the ZIP while loaded.

I understand you'd like to tune mods this way - I thought about it already, my idea is to introduce a new directory MyGames\Rigsofrods\projects which would only contain subdirectories and would be ignored by modcache - mods would be loaded by separate "projects" menu and always fully reloaded from disk, enabling modder to add/edit/remove resources on the go. I even wrote some code but it got obsolete: https://github.com/only-a-ptr/rigs-of-rods/tree/project-folders

@ohlidalp ohlidalp changed the title Unable to reload zipped mod Unable to edit & reload zipped mod Oct 7, 2019
@tritonas00
Copy link
Collaborator

#2709

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants