[RESOLVED] tmwserv Map Warp Points
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: TMW Classic.
[RESOLVED] tmwserv Map Warp Points
Does tmwserv support switching between maps yet or is this something yet to be completed? How do I make it work? If it's not supported yet, how is it planned to work so I can at least get my maps ready for the change?
Thanks!
Thanks!
Last edited by leeor_net on 18 Feb 2008, 02:56, edited 1 time in total.
- Leeor
"Oh, no thanks. I ate a boulder on the way in." - Shrek
"Oh, no thanks. I ate a boulder on the way in." - Shrek
You have to add them by editing the map file with a text editor because Tiled doesn't allow to edit objects yet. It's an XML file. You add an objectgroup tag and then add warp objects like this:
http://rafb.net/p/slhKKA34.html
Check the map new_1-1.tmx from the trunk client repository for examples.
http://rafb.net/p/slhKKA34.html
Check the map new_1-1.tmx from the trunk client repository for examples.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
I think I'll try that. I don't mind programs that are a little rough around the edges, especially since they're development versions. Besides, this constant shuffling of files and copy/pasting object code is getting real old real fast... -_-
Anyway, thanks for the tip!
Anyway, thanks for the tip!
- Leeor
"Oh, no thanks. I ate a boulder on the way in." - Shrek
"Oh, no thanks. I ate a boulder on the way in." - Shrek
The client needs some time to load the next map file and its tilesets when there are any new ones. This usually takes less than a second.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Re: tmwserv Map Warp Points
Precaching tilesets and map data would [probably] ultimatly not be that beneficial. The load times is trivial on modern systems and the technical requirements for the game are not very high so older machines should see no really noticable lag from loading.
I would suggest, however, a better transition between maps, e.g., quick fade-out, fade-in. I don't know if this is planned, has been tested and rejected or whatnot so I just thought I'd throw it in there...
I would suggest, however, a better transition between maps, e.g., quick fade-out, fade-in. I don't know if this is planned, has been tested and rejected or whatnot so I just thought I'd throw it in there...
- Leeor
"Oh, no thanks. I ate a boulder on the way in." - Shrek
"Oh, no thanks. I ate a boulder on the way in." - Shrek
Re: tmwserv Map Warp Points
I had an idea for a maze type map that would be awesome to have a new map display instantly when you step on a warp tile ... that's why I made the suggestion for preloading the next map, that way you just appear instantly on the next map. But the effect would be lame if there was lag or loading time IMHO.
Re: tmwserv Map Warp Points
Note that warping around on the same map does not require any loading time.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Re: tmwserv Map Warp Points
It would be different maps (hence the maze effect), but would look like the same map. Here's an example, pardon the crudity (stars are walls, dashes are the viewable area, X is a connected waypoint between maps):
So what you see when you warp will be the exact same thing, but once you move outside the original viewport, it's completely different ...
This is just one example of how to use this, I have a couple others, but I would like to keep those on the down low for now. The tile before the X would issue a command (all client side, no need to involve the server) that would preload the next map, that way its an instant switch.
Code: Select all
MAP A MAP B
===== =====
**************** *****************
* *
************ * * *************
* * * *
-----------*---*- -----------*---*-
| ****** *| | ****** *|
| * X *| | * X *|
| ****** *| | ****** *|
-----------*---*- -----------*---*-
* * * *
* *********** * *
* * *
*************** * *
This is just one example of how to use this, I have a couple others, but I would like to keep those on the down low for now. The tile before the X would issue a command (all client side, no need to involve the server) that would preload the next map, that way its an instant switch.
- Modanung
- Grand Knight
- Posts: 1719
- Joined: 20 May 2005, 15:51
- Location: Groningen, The Netherlands
- Contact:
Re: [RESOLVED] tmwserv Map Warp Points
Like Crush said you don't need to preload anything if you don't switch maps. This by warping from one location on the map to another. And these A and B can be on the same map, eventhough they are only connected through a warp.
If you're looking for 3D FOSS games be sure to check out LucKey Productions on itch.io
Re: [RESOLVED] tmwserv Map Warp Points
I could do that I guess ... I was kinda hoping that MAP A and MAP B would be bigger (like the max. size) hence needing separate maps but like the Rolling Stones say, "You can't always get what you want, but if you try sometimes you get what you need."