Reinstall RW3 Mods with 2-Clickz (Basic)

Discuss almost anything about RailWorks.

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby Marleyman » Tue May 08, 2012 10:05 am

Added to my list of things to test when I get a minute.

Thank you for the script>
My Railworks 2 Catalogue; http://www.railworks.marleyman.co.uk/
and My RWTS2013 Download Store http://www.railworks.marleyman.co.uk/store/
User avatar
Marleyman
 
Posts: 357
Joined: Fri Dec 10, 2010 4:46 pm
Location: UK

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby Machinist » Tue May 08, 2012 10:22 am

You are wellcome. BTW one mandatory mod I included into my \REINSTALL\railworks folder is the awesome F4 HUD mod by Marleyman. *!!wink!!* !*roll-laugh*!
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby Marleyman » Tue May 08, 2012 11:27 am

Machinist wrote:You are wellcome. BTW one mandatory mod I included into my \REINSTALL\railworks folder is the awesome F4 HUD mod by Marleyman. *!!wink!!* !*roll-laugh*!


never heard of him ;)
My Railworks 2 Catalogue; http://www.railworks.marleyman.co.uk/
and My RWTS2013 Download Store http://www.railworks.marleyman.co.uk/store/
User avatar
Marleyman
 
Posts: 357
Joined: Fri Dec 10, 2010 4:46 pm
Location: UK

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby mojo12012 » Tue May 08, 2012 11:33 am

You are wellcome. BTW one mandatory mod I included into my \REINSTALL\railworks folder is the awesome F4 HUD mod by Marleyman.

I second that fully. No more delving into textures and front end folders but I still get to reinstall the brilliant HUD whenever I want ! 2-Clickz is worth it just for that !*brav*!
mojo12012
 
Posts: 49
Joined: Mon Jan 16, 2012 3:51 pm

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby DanteInvidia » Tue May 08, 2012 5:55 pm

Really glad you're keen on a bit of collaboration, Machinist - between us we'll hopefully make the community's life a whole lot easier.

Been working on the tool a bit tonight, so thought it might be nice to give folks a brief overview of what I've got planned for version 1 of the tool.

  • Auto-detect Rail Works installation path where possible.
  • If the installation path can't be detected in any of the likely places, provide the user with a nice folder browser to make locating the directory a little easier (and also negates the need for them to manually type the path in - something that is bound to cause a headache at some point with typos).
  • Folder browser for back up path. Again, just to make life easier and remove some typing.
  • Support back up of existing installed mods. Basically, this will offer a one click back up of the common folders where modded data lives. I like this approach as it makes life easy for people with existing installations, and it also means you don't need to change your "work flow" when it comes to installing new mods. Rather than have to change where you install them to, you can simply re-run the backup process to snag the newly installed files in the standard Steam installation folder.
  • Time stamp showing when your mods where last backed up - nothing worse than restoring only to find out you've not been diligent in backing up. I work in IT, we're obsessed with backing data up :p

That's about it for version 1. I've got a lot of other really cool ideas, but I'm painfully aware of the dangers of Feature Creep, so I just want to get an initial version ready that at least replicates the functionality of the 2-Clickz Batch file (ah, batch files - one of my first forays into programming was writing an interactive back up tool using a batch file. Now I use Linux rather than Windows, and Shell scripts rule there. Nothing at all wrong with a robust script file to take the edge off repetitive chores).
DanteInvidia
 

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby Machinist » Tue May 08, 2012 6:51 pm

Dante,

I'm speechless! !*brav*! Go ahead... A interface audetecting Railworks folder, even user having multiple fake (backup or alternative) installations on his pc, would be nice. The farther I (at least) can go with batches is the %ProgramFiles(x86)% entry using the pattern Windows' ambient variable, but it doesn't solve the problem of those like me that have Railworks installed on say D:\Steam\...

Easy and fair goes far... a feature to manage the installed mods would be very nice, indeed. I'm sure something really great is coming out from your bit&bytes oven... Dishes and silverware are already on the table, I'm ready to taste your delicacy. !*drool*!

Thank you & Cheers,
Doc.
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby CSX2057 » Wed Jun 06, 2012 12:14 am

Got a question on this one. Can I make a copy of my rwp from all assets and if I place it on the reinstall file. Will it reinstall all that mod files I have now onto the railworks folder using the updater?
Hi! I'm Daniel (37). A casual Train Simulator Streamer and Railfanner. 4+ hours of Fun and Adventure with Laughter, Reactions and SoundFX.
CSX2057 YOUTUBE CHANNEL
User avatar
CSX2057
 
Posts: 1383
Joined: Tue Jun 07, 2011 11:18 am
Location: Georgia

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby Machinist » Wed Jun 06, 2012 2:09 am

CSX2057 wrote:Got a question on this one. Can I make a copy of my rwp from all assets and if I place it on the reinstall file. Will it reinstall all that mod files I have now onto the railworks folder using the updater?

Hi there Daniel, my collegue engineer on VORA. !*cheers*!

That's why I created the feature: 2-Clikz and yep done! *!twisted!* I currently have over than 250 mods (5GB) re-installed in 3 minutes !*YAAA*! (my rig is average and slower, have to be faster in good rigs).

Just a note. To place the mods packed with rwp into the #\REINSTALL folder you need to:
1) rename the (copy of) rwp to zip; then
2) extract the \railworks folder (of rwp file); and finally
3) merge this \railworks folder into the \#REINSTALL\railworks folder, as per Manual (with more details). *!!wink!!*

Cheers,
Doc.

Ps.: using WinRar or 7-Zip you can save a step and extract the \railowroks folder into \#REINSTALL without previously rename the rwp to zip. *!!wink!!* Well... that's a tip for medium level, we are on basic level yet... but you can try this one !!jabber!!
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby CSX2057 » Sun Jun 10, 2012 9:50 pm

Haha nice. I'm rebooting my pc this week. Gonna give it a go. I'll let you know how things go.
Hi! I'm Daniel (37). A casual Train Simulator Streamer and Railfanner. 4+ hours of Fun and Adventure with Laughter, Reactions and SoundFX.
CSX2057 YOUTUBE CHANNEL
User avatar
CSX2057
 
Posts: 1383
Joined: Tue Jun 07, 2011 11:18 am
Location: Georgia

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby mojo12012 » Wed Jun 13, 2012 11:46 am

Hi Machinist, any ideas on whether the next great RW update is likely to change the way things work with 2-Clickz, as it appears they are changing the structure around? Perhaps it's too early to hazard a guess, but having got to grips with your programme it would be a shame to be left to do all the reinstalls manually again.
Cheers
mojo12012
 
Posts: 49
Joined: Mon Jan 16, 2012 3:51 pm

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby Machinist » Wed Jun 13, 2012 12:56 pm

Ideas? *!rolleyes!* No... just one single idea: RSC announced they will change only the \Content folder (where routes and scenarios are placed in). So... and it's just a thought, all your mods into the \Assets folder (for example, or any other than \Content folder) will remain functional. !!*ok*!!

So, again, it means that we'll have to wait how they will re-structure the \Content folder. But I have a feeling that an eventual fix will be easy to do, just renaming the subfolders of \#REINSTALL\railworks to match the new structure & names. Hopefully, of course... *!!wink!!*

As soon as I have the new RW3 structure I'll post the "how to fix" on here. Fingers crossed... !*salute*!

Cheers,
Doc.
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby mojo12012 » Wed Jun 13, 2012 4:03 pm

Thanks Doc.
mojo12012
 
Posts: 49
Joined: Mon Jan 16, 2012 3:51 pm

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby Machinist » Tue Jun 19, 2012 10:36 pm

Awesome news for users of this clever (Papa said that! thank you) batch.

I just reinstalled with 2-Clikz (3 minutes to go) !*brav*! about 250 mods (including some routes) almost 5GB size and all running fine, no adjustment nor tweaking needed! Countless hours saved, and (is even better) with no headache! !*YAAA*!

2-Clikz and yer done! Ditto!!! !*roll-laugh*!

I hope you enjoyed as well... !*salute*!

Cya around,
Doc.
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby up_8677 » Tue Jun 19, 2012 11:14 pm

I still don't understand from reading your documentation...how exactly is this supposed to work? I throw everything into a reinstall folder and it magically puts everything in the right place? I must be missing something. !*roll-laugh*!
up_8677
 
Posts: 341
Joined: Tue May 15, 2012 9:31 pm

Re: Reinstall RW3 Mods with 2-Clickz (Basic)

Unread postby PapaXpress » Tue Jun 19, 2012 11:49 pm

What the batch file is doing is copying over a mirrored file structure to your railworks folder. For example lets say you have the SD70ACe horn from b737lvr. You would first unzip his files to a folder and read the readme...

Done reading? It will say:
Visit viewtopic.php?f=30&t=5710&p=57813#p57813 for Install Instructions and Updates.

... ok

*BACKUP ANYTHING THAT CAN BE OVERWRITTEN*

Vol. 1)
Install: Replace all the files into Program Files\Steam\steamapps\common\railworks\Assets\RSC\SD70Pack01\Audio\RailVehicles\Diesel\SD70ACe\Cab

Vol. 2)
Install: Replace all the files into Program Files\Steam\steamapps\common\railworks\Assets\RSC\SD70Pack02\Audio\RailVehicles\Diesel\SD70ACe\Cab


*BACKUP ANYTHING THAT CAN BE OVERWRITTEN*


This means that I would create the same folder structure where my batch file resides. It looks like this:
Folder Structure.jpg


I then place the files in each of those folders, just like I would to the real RW assets folder:
File Structure.jpg


So how does the batch file work with these folders? I need to tell it about where to copy the files from. The first set of lines in my batch look like this:

Code: Select all
ECHO OFF
CLS

REM This batch file will reinstall and update all your personal mods, and much more

REM Change the following line to the correct path to your "Railworks" folder
SET RW="%ProgramFiles(x86)%\Steam\steamapps\common\railworks"

REM Change the following line to the current path to your "REINSTALL" folder
SET REI="C:\Users\dan\Desktop\Customizations"


Note the values of RW and REI. Its like saying TO and FROM

The heavy lifting is done further down:
Code: Select all
ECHO .
ECHO ##########################################
ECHO Performing SECOND STAGE: Reinstalling mods
ECHO .
ECHO .

XCOPY /S /Y /Q %REI%\railworks\*.* %RW%


so to say this another way: COPY (files and folders silently) FROM (get everything) TO (this folder).

Now my batch file is slightly different than what Doc posted since its was a version he sent me to test with. It also helps that I know a lot about the batch language, and I edited the parts that I did not need (like removing the radio sounds). The good part is that once you have the batch file set the way you want it you don't need to edit it again. All you need to do is add new folders and files when you get them and run the batch file (as Admin).

I hope that helps.
You do not have the required permissions to view the files attached to this post.
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest