Useful application to replace blueprint references bin/xml

General discussion about RailWorks, your thoughts, questions, news and views!

Moderator: Moderators

shanyiqua
Been on the forums for a while
Posts: 262
Joined: Tue Dec 20, 2011 11:48 am

Re: Useful application to replace blueprint references bin/xml

Post by shanyiqua »

http://discrailworks.blogspot.com/2012/ ... lacer.html

I've made a tool to toggle, disable, or enable shadow casting of lights. Select a file or directory in tree view, then right click to get the popup menu. If you selected directory it will do what you've selected on all light blueprints in it, but it won't look in sub-directories. It makes backup files of course.
AndyUK
Very Active Forum Member
Posts: 3135
Joined: Thu Aug 15, 2002 7:57 pm

Re: Useful application to replace blueprint references bin/xml

Post by AndyUK »

shanyiqua wrote:http://discrailworks.blogspot.com/2012/ ... lacer.html

I've made a tool to toggle, disable, or enable shadow casting of lights..
Anyone get this to work? I've tried on several items of DLC and the files appear unchanged and no backups are created.

Andy L
crazyfrogbro
Established Forum Member
Posts: 304
Joined: Tue Jan 18, 2011 9:09 pm

Re: Useful application to replace blueprint references bin/xml

Post by crazyfrogbro »

Select a directory, which contains light blueprints ;) or a light blueprint file. It works.
AndyUK
Very Active Forum Member
Posts: 3135
Joined: Thu Aug 15, 2002 7:57 pm

Re: Useful application to replace blueprint references bin/xml

Post by AndyUK »

crazyfrogbro wrote:Select a directory, which contains light blueprints ;) or a light blueprint file..
I'm pretty sure that's what I am doing, but just to be sure can someone give me an example of a filename to pick?

Andy L
AndyUK
Very Active Forum Member
Posts: 3135
Joined: Thu Aug 15, 2002 7:57 pm

Re: Useful application to replace blueprint references bin/xml

Post by AndyUK »

I think there may be a bigger problem with the app on my system. I've just followed the video tutorial showing the editing of tracks.bin and I never see anything appear in the box in the bottom left above the filter button.

Andy L
crazyfrogbro
Established Forum Member
Posts: 304
Joined: Tue Jan 18, 2011 9:09 pm

Re: Useful application to replace blueprint references bin/xml

Post by crazyfrogbro »

You should know which is a light blueprint file. These are usually located in lights directory. If you select the lights directory, the program probably will find at least one blueprint with light component, and will change it. Of course it won't work with serz missing warning message, because the compression methods of serz still known only by rsc, so you need to have one next to the program.
before
http://f.cl.ly/items/3M3n2E1E0p1Z3H0w1i ... 2%20PM.png
after
http://cl.ly/2e00152m343t2R470K40/Image ... 8%20PM.png

Do you get any error/warning messages?
shanyiqua
Been on the forums for a while
Posts: 262
Joined: Tue Dec 20, 2011 11:48 am

Re: Useful application to replace blueprint references bin/xml

Post by shanyiqua »

Do you get any error messages? Do you get more infos when you open a cmd and use "java -jar replacer.jar"?

Do you have the files you want to manipulate in the subdirectory of program files? If you do, try running the application with admin mode, because the stupid windows probably denies the write access otherwise.
AndyUK
Very Active Forum Member
Posts: 3135
Joined: Thu Aug 15, 2002 7:57 pm

Re: Useful application to replace blueprint references bin/xml

Post by AndyUK »

shanyiqua wrote:Do you get any error messages? Do you get more infos when you open a cmd and use "java -jar replacer.jar"?
Thanks for responding. I don't get any error messsages when I run replacer.jar by clicking on it but if run from the command prompt I see that the problem seems to be because it can't 'Read or convert to .xml the target file'. See attched screenshot. Serz.exe is in the same folder as replacer.jar.
Do you have the files you want to manipulate in the subdirectory of program files? If you do, try running the application with admin mode, because the stupid windows probably denies the write access otherwise.
The files I'm trying to edit are not in the Program Files directory or subdirectory and neither is replacer.jar.

Andy L
Attachments
Replacer error.jpg
AndyUK
Very Active Forum Member
Posts: 3135
Joined: Thu Aug 15, 2002 7:57 pm

Re: Useful application to replace blueprint references bin/xml

Post by AndyUK »

Just a bit more info regarding the above problem. If I convert the .bin file to .xml using serz.exe 'manually' then replacer.jar will work, partly. I tested by converting the files in the WCML Class 86 common lights folder and then using replacer to Disable shadow casting by right clicking on the common lights folder. Both .xml files were changed and backups of the .bin files were made but the .bin files themselves were unchanged. It looks like for some reason replacer.jar isn't communicating with serz.exe to convert .bin to .xml and back again.

Andy L
shanyiqua
Been on the forums for a while
Posts: 262
Joined: Tue Dec 20, 2011 11:48 am

Re: Useful application to replace blueprint references bin/xml

Post by shanyiqua »

Oh yeah, the good old serz.exe problem that i didn't thought about :)

You have a space in path, so serz.exe will parse the path only to space, so it won't find the bin and convert to xml, then the application itself won't find the xml to edit :)
It can be easily fixed just need to put the path between " " when the program calls serz. I'll upload it soon.
shanyiqua
Been on the forums for a while
Posts: 262
Joined: Tue Dec 20, 2011 11:48 am

Re: Useful application to replace blueprint references bin/xml

Post by shanyiqua »

Fix is online, please re download it.
AndyUK
Very Active Forum Member
Posts: 3135
Joined: Thu Aug 15, 2002 7:57 pm

Re: Useful application to replace blueprint references bin/xml

Post by AndyUK »

Pleased to confirm that the latest version works for me. Many thanks for your help it's certainly going to make turning off those frame rate sapping shadow casting lights a lot quicker than doing it by hand.

Andy L
shanyiqua
Been on the forums for a while
Posts: 262
Joined: Tue Dec 20, 2011 11:48 am

Re: Useful application to replace blueprint references bin/xml

Post by shanyiqua »

New version:
http://discrailworks.blogspot.com/2012/ ... lacer.html
Fixed a bug when user adds blueprint information to table by double clicking on blueprint in file tree. (misaligned columns if there are columns hidden, or the list is sorted)
Added online check for new version, and notification if there is newer version.
michaeldono
Very Active Forum Member
Posts: 1071
Joined: Sat Jul 11, 2009 9:06 am

Re: Useful application to replace blueprint references bin/xml

Post by michaeldono »

I tried to replace some tracks, but in game they've just disapeared, and there's been no change at all in the tracks.bin... I got the no change problem with RW tools as well...
Image
michaeldono
Very Active Forum Member
Posts: 1071
Joined: Sat Jul 11, 2009 9:06 am

Re: Useful application to replace blueprint references bin/xml

Post by michaeldono »

It seems I used the / slash rather than \ in the directory... :oops: :lol:
Image
Locked

Return to “[RW] General RW Discussion”