Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/11/22 in Posts

  1. Hey everyone, The tool I am releasing is able to create RO sprite images in almost the same way as the official client does it. Means all it requires are the official data.grf files. You can compare it to ROCharGen. I've been working on this project for quite some time, mostly due to changing to some other fad regarding programming languages and re-implementing the logic everytime. However I have now stick to one and actually got it to a point where it is possible to release it (actually the code has been up on github the whole time). So what exactly does it do? Given a data/ folder that contains the necessary sprite and lua files, it creates a set of png images for specific job ids. In case of animations it instead creates an apng image. Examples Webservice As written in the topic title the tool is available as a CLI tool (see examples) or as a webservice. Means you can put it on your server and make requests to it to view for example the character sprites of your players. For that I have created a FluxCP addon which interacts with the webservice: https://github.com/zhad3/zrenderer-fluxcp-addon. Setting up the whole thing is not as easy as ROCharGen hence there is a comprehensive tutorial available to get up and running: https://github.com/zhad3/zrenderer-fluxcp-addon/wiki/Tutorials FAQ Q: Can it create signatures like ROCharGen with background image, name, level, etc.? A: No. Q: Can it render 3d sprites such as the Guild Guardians, Treasure chests or Emporium? A: No, only 2d sprites Q: Can it render 4th jobs and new expanded classes such as Shiranui, Spirit Handler or Hyper Novice? A: Yes. Q: Can it render my custom items? A: Yes, with the exception of shields. Q: Can I use it for Ragnarok Online Zero? A: It has not been tested. The tool was created based on Renewal and just as that uses the lua files from the GRF which might not be available for Zero. Q: How do I use this? A: For a server setup read the tutorial: https://github.com/zhad3/zrenderer-fluxcp-addon/wiki/Tutorials. If you just want to fiddle around I recommend building the CLI tool. See the build instruction on the github. For windows you may also directly download the binaries from the releases page: https://github.com/zhad3/zrenderer/releases. Q: How do I update the data when I release a patch for my server? A: Currently there is no automatic process. The tool zextractor that we use in the tutorial supports also GPF and THOR. So you would need to upload your patch to the server and extract the data as done in the tutorial. Q: Why should I use this if I use ROCharGen already? A: You don't. Unless you are not happy with ROCharGen. Q: Can I use this for other purposes instead of just rendering Player sprites? A: Yes, for example you could use this for a database to automatically render sprites. You most likely don't want to use the FluxCP addon then but may reference it as an example. Links zrenderer repository: https://github.com/zhad3/zrenderer zrenderer windows binaries: https://github.com/zhad3/zrenderer/releases FluxCP addon repository: https://github.com/zhad3/zrenderer-fluxcp-addon Setup tutorial to get it up and running on your server: https://github.com/zhad3/zrenderer-fluxcp-addon/wiki/Tutorials Support Only limited support. There are still some features open I haven't implemented but since I consider this project overdue I just released it as is now. Regarding questions on how to setup I will only answer very specific questions referencing a specific step in the tutorial. Have fun!
    1 point
  2. you can try like .. setarray .@menu_item$, "Menu 1", "Menu 2", "Menu 3"; .@menu_item_size = getarraysize(.@menu_item$); for (.@i = 0; .@i < .@menu_item_size; .@i++) { .@menu$ = .@menu$ + (.@i > 0 ? ":" : "") + .@menu_item$[.@i]; } .@i = select( .@menu$ ) - 1; mes "You selected menu : "+ .@menu_item$[.@i]; or setarray .@menu_item$, "Menu 1", "Menu 2", "Menu 3"; .@menu$ = implode(.@menu_item$, ":"); .@i = select( .@menu$ ) - 1; mes "You selected menu : "+ .@menu_item$[.@i];
    1 point
  3. little example setarray A_menu[0],"menu 02","menu 03","menu 04"; set .@menu,"menu 01";//Build First Item on Menu, cant put in <for>, it will looping for(set .@i,0; .@i < getarraysize(A_menu[0]);.@i++) {// add array item to menu set .@menu,.@menu+":"+A_menu[.@i]; } select(.@menu);//menu list show out
    1 point
×
×
  • Create New...