Useful application to replace blueprint references bin/xml
Moderator: Moderators
Re: Useful application to replace blueprint references bin/xml
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.
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.
Re: Useful application to replace blueprint references bin/xml
Anyone get this to work? I've tried on several items of DLC and the files appear unchanged and no backups are created.shanyiqua wrote:http://discrailworks.blogspot.com/2012/ ... lacer.html
I've made a tool to toggle, disable, or enable shadow casting of lights..
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
Select a directory, which contains light blueprints
or a light blueprint file. It works.
Re: Useful application to replace blueprint references bin/xml
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?crazyfrogbro wrote:Select a directory, which contains light blueprintsor a light blueprint file..
Andy L
Re: Useful application to replace blueprint references bin/xml
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
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
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?
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?
Re: Useful application to replace blueprint references bin/xml
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.
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.
Re: Useful application to replace blueprint references bin/xml
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.shanyiqua wrote:Do you get any error messages? Do you get more infos when you open a cmd and use "java -jar replacer.jar"?
The files I'm trying to edit are not in the Program Files directory or subdirectory and neither is 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.
Andy L
Re: Useful application to replace blueprint references bin/xml
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
Andy L
Re: Useful application to replace blueprint references bin/xml
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.
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.
Re: Useful application to replace blueprint references bin/xml
Fix is online, please re download it.
Re: Useful application to replace blueprint references bin/xml
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
Andy L
Re: Useful application to replace blueprint references bin/xml
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.
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
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...

-
michaeldono
- Very Active Forum Member
- Posts: 1071
- Joined: Sat Jul 11, 2009 9:06 am
Re: Useful application to replace blueprint references bin/xml
It seems I used the / slash rather than \ in the directory...

