Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   GMAP Bug (https://forums.graalonline.com/forums/showthread.php?t=134269945)

MysticalDragon 05-02-2015 10:28 AM

GMAP Bug
 
So I recently rendered a new GMAP so i could combine both of delterias maps into one map. If i warp to the gmap it works perfectly fine, however if I load in game on the gmap it looks like.

http://tinyurl.com/q4ogxeq

I need to reconnect off the map and warp there for it to render correctly, has anyone experienced this issue.

Cubical 05-02-2015 12:10 PM

delete tiledefs

MysticalDragon 05-02-2015 01:26 PM

I got excited when I seen this hoping it was the solution but it isn't :(.

Draenin 05-02-2015 03:13 PM

Your screenshot isn't showing up. :s

xAndrewx 05-03-2015 07:38 AM

This is how I create GMAPs and I've never had any issues-
  • Create the GMAP file (ensure the WIDTH and HEIGHT are correct)
  • Load the Levels & GMAP in to the relevant FTP folders (i.e. levels/gmaps)
  • Add the GMAP file name to the 'GMAPS=' in server options
  • Add 'loadmap GMAPNAME.gmap' to a weapon which is added to the player on login
  • Finally warp to the GMAP and it will work

I've created many in the past not in this order and they've always had issues. :[

MysticalDragon 05-03-2015 08:07 AM

all the above is done, I also added it to login script with loadmap("delteria") and the gmap works perfectly fine if warped to it. However if you load login into the gmap it looks like this and you cant see your character and every thing is rendered incorrectly. Only way it actually works is if you start off the map and warp to it.

Crono 05-03-2015 09:55 AM

Can you post the gmap file or PM it to me?

MysticalDragon 05-03-2015 10:40 AM

Snk (Andrew) just recently fixed it. Thank you a lot for the support. Maybe he can post his fixes so in case other people have similar issues.

scriptless 05-03-2015 12:26 PM

Quote:

Originally Posted by xAndrewx (Post 1735981)
  • Add 'loadmap GMAPNAME.gmap' to a weapon which is added to the player on login

I was told that we no longer needed to use loadmap() or setmap().. That all of that was done automatically. Was I told wrong?

Elk 05-03-2015 06:37 PM

Quote:

Originally Posted by scriptless (Post 1735993)
I was told that we no longer needed to use loadmap() or setmap().. That all of that was done automatically. Was I told wrong?

this is correct :p

gmap file is built up like this, combining gmaps is a real pain to do manually if they are big... best to use a nifty javascript to add the levels in quotes with commas to their respective place

extending a map vertically is easier than horizontally imo

PHP Code:

GRMAP001
WIDTH X
HEIGHT Y
LEVELNAMES
"levelname.nw","levelname.nw","levelname.nw","levelname.nw","levelname.nw","levelname.nw"
"levelname.nw"
,"levelname.nw","levelname.nw","levelname.nw","levelname.nw","levelname.nw"
"levelname.nw"
,"levelname.nw","levelname.nw","levelname.nw","levelname.nw","levelname.nw"
"levelname.nw"
,"levelname.nw","levelname.nw","levelname.nw","levelname.nw","levelname.nw"
"levelname.nw"
,"levelname.nw","levelname.nw","levelname.nw","levelname.nw","levelname.nw"
LEVELNAMESEND 


Jakov_the_Jakovasaur 05-03-2015 09:00 PM

Quote:

Originally Posted by scriptless (Post 1735993)
I was told that we no longer needed to use loadmap() or setmap().. That all of that was done automatically. Was I told wrong?

hello!

i dont think loadmap should be used on a server either, its a relic from the past

the one real use for it is for loading a gmap within the offline editor, however a much more convenient method to achieve this is to create a text file within your graal folder called 'loadgmaps.txt', with each map name (without .gmap) listed on a new line like so:

PHP Code:

jakovasaurland_overworld
jakovasaurland_secretisland
jakovasaurland_outerspace 

then all listed gmaps should load automatically within the offline editor, it may require deleting filenamecache.txt first

Cubical 05-04-2015 08:56 AM

If the old map was named 'delteria' try renaming it to something else. maloria had this issue forever ago when vash was working on it.

Elk 05-04-2015 09:36 AM

Quote:

Originally Posted by cubical (Post 1736005)
vash

:d

Crow 05-05-2015 01:52 PM

loadmap() can still be used to load a GMAP when you're not already on it. I did that on Atlantis to reduce loading times when entering the overworld. Just throwing that in.

xAndrewx 05-05-2015 02:23 PM

Yeah. You need to call it before you load an instance otherwise you won't see the other players lol

If you know how to do this without breaking the instance, please tell meeeeeeeee


All times are GMT +2. The time now is 07:22 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.