| Mirage Source http://miragesource.net/forums/ |
|
| Advanced Scrolling maps http://miragesource.net/forums/viewtopic.php?f=201&t=853 |
Page 1 of 1 |
| Author: | Matt [ Sat Dec 16, 2006 2:57 am ] |
| Post subject: | Advanced Scrolling maps |
I was wondering if anyone knows where to start for blitting the items on the surrounding maps. So that if you're standing on map one, you can see the items on map 2. Just need a pointer in the right direction. |
|
| Author: | Verrigan [ Sat Dec 16, 2006 3:01 am ] |
| Post subject: | |
You will need to revamp how maps are sent and received.. Believe it or not, to get it working only takes some minor changes to the map packets.. Basically, you need to let the client send a request for each surrounding map, and make sure it understands which maps are the surrounding maps, when the server sends them back.. (of course, you'll have to modify the server to accept such requests, and to send the specific maps without warping the player to those maps..) Then, when those items move, instead of sending to just the map those items are on, send it to all the surrounding maps.. I think that pretty much covers it. |
|
| Author: | Matt [ Sat Dec 16, 2006 3:03 am ] |
| Post subject: | |
Wow, you lost me. Lol. Would this same method work for npcs and players? And would you be willing to get on gtalk and help me out? |
|
| Author: | Verrigan [ Sat Dec 16, 2006 3:10 am ] |
| Post subject: | |
Advocate wrote: Wow, you lost me. Lol.
Would this same method work for npcs and players? And would you be willing to get on gtalk and help me out? I wasn't trying to lose you... But I can't help you. I purposefully left this stuff out of my original tutorial so others could figure it out for themselves.. As of now, I think there are only a handful of people who have succeeded with this.. (None, that I know of, but I'm sure there's gotta be at least one other than me. Just make sure that the player has the maps s/he needs, (request surrounding maps packet or whatever..) and make sure that sendtomap sends to surrounding maps too. |
|
| Author: | Matt [ Sat Dec 16, 2006 3:13 am ] |
| Post subject: | |
Hm.. I know you weren't trying to lose me, but it's not hard these days. Lol. I figured you'd give me a little more help, but hey, a little help is better than none. Thanks alot Ver. I'll see if I can get this done. |
|
| Author: | Matt [ Sat Dec 16, 2006 3:21 am ] |
| Post subject: | |
Sorry for double post, but when you said sendmapto, I assume you meant the subs like sendmapitemsto and sendmapitemstoall and so on, right? |
|
| Author: | Lea [ Sat Dec 16, 2006 3:25 am ] |
| Post subject: | |
You'll need to make it so players can get map information of all sorts even if they're not on the map. I would have the server keep track of "MapsVisible()" right in the PlayerRec as an unsaved variable. Have the client say which maps are visible, then have the server update the client on those maps's data just like it does the map the player is on. |
|
| Author: | Matt [ Sat Dec 16, 2006 3:29 am ] |
| Post subject: | |
Heh, sounds like it would work. Just doesn't get the gears in my head going. I dunno how to do what you're talking about. I was actually hoping for some sort of example, that would get me started. Once I get started, I can get it. |
|
| Author: | Lea [ Sat Dec 16, 2006 3:31 am ] |
| Post subject: | |
Can't help there, never have been a scrolling map fan. I did a simple make-the-map scroll test a loong time ago, but I never have and never will bother with seamless scrolling in Mirage Source. Probably never with normal seam-ful scrolling, either. I don't like it. |
|
| Author: | Matt [ Sat Dec 16, 2006 4:26 am ] |
| Post subject: | |
Well, I got the server to realize that there is an item on map 1 when I'm standing on map 2, though I can't get it to show for the life of me.. Any pointers? |
|
| Author: | Obsidian [ Sat Dec 16, 2006 6:00 am ] |
| Post subject: | |
I'm not going to give you the code (this time), but i'll give you this piece of info... if it knows it's there... and it isn't showing up... i'd look at the BltItem stuff............. But seriously, kind of mess around with that stuff, and see if you get it... if you can't let me know and i'll try to hint you through it... kind of like i did with binary stuff... |
|
| Author: | Robin [ Sat Dec 16, 2006 1:50 pm ] |
| Post subject: | |
Make it so you download the surrounding maps of your map, then after bltItem add 'bltItem Surround Maps' or something. In there, go through the surrounding maps, seeing if there is an item (map(myindex).up) if so, blt it accordingly. Make sure you only do it for the half that you can see. (Or quarter in the corner maps) |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|