Re: Using a different image for the tank chassis, gun and radar?

fnl <[email protected]> Thu, 9 Jun 2016 13:22:17 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
Correct, the images are built into Robocode. There is currently no support 
for custom images.
You might be able to create a script that can change the image in the .jar 
file. But the image will change for all robots.
You could create a script that 1) unpacks the .jar file (as a .zip file), 
2) replaces the image files, 3) Re-pack the files again to a .jar file.

Cheers,
- Flemming

Den torsdag den 9. juni 2016 kl. 19.10.34 UTC+2 skrev [email protected]:
>
>
> Thanks for the response!
>
> Unfortunately, due to the limitations of the school network and my own 
> lack of JAVA Scripting knowledge I dont think I can do what I initially 
> wanted.
> Robocode would be installed to the local drive which the pupils have no 
> access to.  And from what I can tell, the images are loaded within the 
> program itself, rather than the scripts for the user-made tanks.  Unless I 
> can figure out a way of setting the images used from the tank scripts 
> themselves (overwriting the default appearance) and include several 
> different designs (Chassis_1, Chassis_2 etc.) in the ui.jar file before 
> installing the program to the pupil machines, then they wont be able to 
> select different appearances.
>
>  - Paul
>

-- 
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.