Jump to content
SSForum.net is back!

Maverick

★ VIP
  • Posts

    3556
  • Joined

  • Last visited

Everything posted by Maverick

  1. yea, it does no wonders or is very advanced but it works like a charm
  2. it's a nice feature, nothing compared to myspace Anyway, topic closed.
  3. Welcome SSRocker
  4. [Closed]
  5. Don't know either, I got it from the code comments
  6. Are you trying to run Continuum via the Run As... option? If you do, don't.
  7. More code about reading a map file from disk - as D1st0rt said - see the convertFileToMatrix() method of map.cpp . That method checks if a tileset is present (by checking the BMP header) and skips it. It then reads out 4 bytes each time and puts it into a tileData object (which contains the x, y and tile number) using the makeTileData() method.
  8. Hm it was in my Labyrinth plugin instead which never got released Write a .lvl file char buf[4];//the char array Uint32 *data=(Uint32*)buf;//pointer to the array int tile=0;//info we want in file int x=0; int y=0; ofstream file("get/labyrinth.lvl", ios::binary | ios::app);//open a file in binary mode file.seekp(0, ios::end); //Make sure we append at the end of the file *data = ((tile & 0xFF) << 24) | ((i & 0x3FF) << 12) | (x & 0x3FF); //^^^^--pushes data into the array, If you know the data is good then you dont need the bitwise & file.write(buf, 4);//write file.close(); If you want a tileset, you need to prepend a bitmap image or level file (which is almost the same): ifstream org("labyrinth.lvl", ios::binary); ofstream nnew("get/labyrinth.lvl", ios::binary | ios::trunc); nnew << org.rdbuf(); org.close(); nnew.close(); Note; you need to do this before writing any other tiles (before the first piece of code) since the bitmap has to be at the begin of the file. Reading a map.lvl file: I seem to have lost that piece of code. It's pretty easy, you only need to read that buf[4] array out each time until you reach the end of the file. However, make sure you skip the first 3435921408 bytes if the file begins with "BM-" (it's the size of the BMP image).
  9. Notice; the rules has been updated to reflect the signature changes.
  10. Done [Closed]
  11. Sure thing, done
  12. READ THIS TOPIC, nothing more anyone here can do http://forums.sscentral.com/index.php?showtopic=10805
  13. guys, Witchie asked about the lvl format (map data), not the lvz format Oh and I didn't have time yesterday so maybe this evening
  14. Well "SSForum" as it is now isn't near as active to what it used to be
  15. I have that code in my old and halted Tutorial project, I will paste it here when I get home (and remember to do this )
  16. See Samapico's explanation. Feedback can be given in the Feedback & Support forum. Open a new topic with some detailed information to your problem if you want to be helped properly.
  17. finally!
  18. yea agreed Samapico. Don't see anything funny with it.
  19. Thanks Dustpuppy If anyone want to make a suggestion for the quotes, PM Dustpuppy or post a new topic. [Closed]
  20. hmm indeed. It seems they changed the code of the host-tracker button but it doesn't really work like how they think it should. Fixed it now.
  21. done
  22. Got to move this to the Game Development department
  23. What does it do specifically ? I can't tell from the page you posted the link to.
×
×
  • Create New...