Jump to content

KeyWorld

Members
  • Posts

    379
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by KeyWorld

  1. Just update the user privileges in your favorite sql manager (phpmyadmin ?). But honestly, it's the first time I see a crash due to superuser; so I don't really think your crash is related to this message.
  2. 3903 downloads

    If you remember this topic there was a contest for the upcoming Cerescp default theme. For now, I don't know if developers stopped to work on the new CeresCP version, but a lot of time passed since the last update/announce and some members asked me to release the default theme I made. I hope the best to CeresCP developers, the theme can always be used if they continue the project. So in this archive, an index.html page with css/javascript and images. Compatible (the last time I checked) with: IE6, IE7, IE8, IE9, IE10 Safari Chrome Opera Firefox You can check the online version: http://upload.robrowser.com/templates/ceres/ There is no CP in the archive, you will have to integrate it to your favorite one yourself (hey don't pay someone to do it, all the work is already done seriously...). Have fun
    Free
  3. Fixed. More seriously, yeah I agree with the message (if you want more, ask a question ? maybe ?).
  4. Ok I see the problem. // Change this: $this->aAnimData[$anim][$nf] += unpack('lExtYOffset/lExtYOffset/lExtXOffset/lExtYOffset/lExtXOffset', fread($this->act, 0x14)); $extrainfo = unpack('lbool', fread($this->act, 0x04)); if($extrainfo['bool'] == 1) fseek($this->act, 0x10, SEEK_CUR); // To: fseek( $this->act, 4, SEEK_CUR ); // sound id, store it in a variable if you want $extrainfo = unpack('lbool', fread($this->act, 0x04)); // Extras infos (if you need) fseek($this->act, 0x10 * $extrainfo['bool'], SEEK_CUR);
  5. You just need to put enough length for the unpack(). Example: unpack('fxScale/fyScale/lrotation/lsprType/lsprWidth/lsprHeight', fread($this->act, 24));For each name in the unpack(), take the first letter: f = float = 4 bytes l = long = 4 bytes 4 (xScale) + 4 (yScale) + 4 (rotation) + 4 (sprType) + 4 (sprWidth) + 4 (sprHeight) = 24. Can you upload a act you have problem with ?
  6. Replace this part: With: for($patNo = 0; $patNo < $this->aAnimData[$anim][$nf]['numSubFrames']; $patNo++) { $this->aAnimData[$anim][$nf][$patNo] = unpack('lxOffset/lyOffset/lsprNo/lmirrored/Cred/Cgreen/Cblue/Calpha', fread($this->act, 0x14)); if($this->aVersion < 2.0 ); else if($this->aVersion < 2.4 ) $this->aAnimData[$anim][$nf][$patNo] += unpack('fxyScale/lrotation/lsprType', fread($this->act, 12)); else if($this->aVersion == 2.4 ) $this->aAnimData[$anim][$nf][$patNo] += unpack('fxScale/fyScale/lrotation/lspr_type', fread($this->act, 16)); else $this->aAnimData[$anim][$nf][$patNo] += unpack('fxScale/fyScale/lrotation/lsprType/lsprWidth/lsprHeight', fread($this->act, 24)); }There is also another problem after if you are reading a version < 2.3Well your function is very ugly, hard to debug. If there is still a problem, can you report your act version ? Edit: Sorry for the quote, the code bbcode was buggy...
  7. Can you paste here your PHP code, I will check if there is an error with (maybe an unsupported version).
  8. There was an update some month ago to execute the query in another thread if i remember correctly, so you should not be able to freeze just by sending query.
  9. You can't use a label if it has the same name as a constant/player variable. So rename the label sn to another name.
  10. Just compile the emulator using XCode ? I don't know a lot for this, but it should be the proper way.
  11. There are two borings bugs : Can't display some BMP files, but after comparing with safari, it's seems it's maybe a chrome bug nor webkit (can't test on a recent version of safari). And another one with the native scrollbar : it can triggered mousedown but not mouseup, click, etc. So if you do a draggable UI and you click on a scrollbar on this UI, it will start following your mouse but there is no way after to detect a mousedown to stop the the UI to follow you. But this bugs really depend of what you do with the rendering engine. Maybe you will not load BMP files for the UI, and maybe you will not manage the draggable UI using webkit
  12. It's fun to see just one check to detect proxy base on a facultative http header that the proxy can omit to send So yeah you can definitively remove this check, I don't think a lot of proxy send it anymore since a long time.
  13. V8 is the javascript engine. The rendering engine is webkit (i advise you to not use webkit, it has some boring bug I have problems with on robrowser). Keep it up :-)
  14. You should add else end; to avoid getting an error for creating a room when one already exist.
  15. The GRF Viewer tool helped me to find a lot of things to fix on the CORE. Bugs on some TGA version, some sprites with empty layer (wth ?), some bugs on the file manager, etc. I added the support to read sprites and palettes, fixed the next/previous buttons and add a thumbnail system. Textures: Palettes: Sprites: Search feature (top right input): I re-worked the UI system of robrowser, it was a little buggy (from the old version). The RSM now support is natural shadding type (without, flat, or smooth) instead of using smooth shadding on all models, result: better render, faster loading. I fixed some bugs on Firefox. And I will now focus on working with sprite rendering on the next days.
  16. I don't love the UI but I'm impressed by its speed (loading and searching, I didn't compare others features), it seems faster than others GRF Tool I tested (even a bit faster than my GRF Viewer, but yeah mine is writing in javascript). Good job, keep it up
  17. Hehe, yesterday I worked late on re-writing my old GRF-Viewer but using roBrowser's core (it help me to find some bugs and extend the core to be used easily to do whatever you want). Here some previews of what I've done for now : There is still some bugs to fix, but it was funny to code.
  18. Good job guys BUT: Do you think of us, guys who work on custom client ? In the past we just need to convert the official .gr2 files on another format to use them, but now what do we have to do ? Parse gr2 file directly (not possible for now) ? Or add a default poring sprite to the gr2 file, ahahah ! Just kidding, great job
  19. You got it. All for(), while(), switch(), if, else, internal func(), ... are converted to label + goto/callsub + jump_zero on runtime. But for keep the script readable it's better to not write the whole script using the low level statement (except if you have reasons like optimizations) doevent, donpcevent are used to run another script instance. It's often used to start action on other script. Example: a script to manage all games in your server: mes "Select the event to start"; switch( select("Capture the Flag","Nyan Cat Catcher", "First Man Dying") ) { case 1: donpcevent "ctf::OnStartEvent"; break; ... } It's good to know that donpcevent will run the script after yours end (it's not multi-thread), to run it after continue you have to pause the script donpcevent "todo::OnLol"; sleep2 1; // execute todo::OnLol before continue. dowtfyouwant; And functions/callsub I think you know them, it's used to avoid redundant, have fun with arguments, and return to the main script when finished. Good luck for your project
  20. Someone moved it here, I don't know why but yeah it should be better on "project > clientside". Yeah I already build a loader for it in html5/js, it was funny but I don't think I will use it further for other things ----------------------------------- I add my RSM-Viewer in the project to work more and faster on the RSM file since it need some changes (optimize the compilation, add the animation, change the smooth normal methods, ...), what I love about this tool is the way it can be embedded to webpage :
  21. Sorry, I didn't have much time to work on it since november because of all birthdays and celebrations (why everyone born around december ?). I'm not able to add the important speed up update on the loading. It was an idea to use multiple threads to parse the client files (using 4 threads is 4 times faster) but it seems we can't load multiple part of a file at the same time. But I don't care, I did some good optimization (on zlib, and file parsing) and the loading is still faster : 4.5 seconds to load Prontera (you can compare with the video, it's ~4 time faster). I still need to optimize one part of the loading, when a map have a lot of instances of the same models it's really slow : yggdrasil01 take 17 secs to load (wtf ?!). I did some improvements on the TGA Manager due to NPOT textures causing problems. I also add a DB file to add the blue sky (note: I don't plane to add the cloud features in the near future). I have to say also, this project will be (source) released this year, finished or not. There is no way to donate ----------------------------------------------------------------------- Offtopic: I also played a little with RO2 VDK file archive. It's one of the easier format I find in my life, ~10 minutes to understand the structure, ~15 minutes to write a loader... Funny to see how this file is build... Note: no I don't plane to do a ro2browser...
  22. He did a backup with 146 mobs of Trickster Online he converted for RO, it it interest you. http://tozorman87.free.fr/Mob%20Trickster%20Online%20%5bToZorMan%5d.rar
  23. Yeah it should. But you don't need escape_sql() on an INT variable just on string.
  24. First you have to put QUOTE. Second you have to secure the string entry. query_sql("INSERT INTO `points` ( `char_id`, `name`, `points`) VALUES ('150000', '" + escale_sql(strcharinfo(0)) + "', '1')");
×
×
  • Create New...