Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Map (https://forums.graalonline.com/forums/showthread.php?t=12281)

Merlin 09-19-2001 07:31 AM

Map
 
if (playerenters) {
setmap graalmap.png, map.txt, x,y;
}

Why does'nt that work?
i have map.txt and graalmap.png in the same directly as all the levels so.... ;\

KJS 09-19-2001 07:36 AM

Re: Map
 
Quote:

Originally posted by Merlin
if (playerenters) {
setmap graalmap.png, map.txt, x,y;
}

Why does'nt that work?
i have map.txt and graalmap.png in the same directly as all the levels so.... ;\

like does the levels connect or does it just not show the map (mabie the maps .png is like wronge cuz I do that all hte time and it doesn't show the map because it has to many colors I think 24 bit png, I dont think it supports that)

Merlin 09-19-2001 07:42 AM

Re: Re: Map
 
Quote:

Originally posted by KJS


like does the levels connect or does it just not show the map (mabie the maps .png is like wronge cuz I do that all hte time and it doesn't show the map because it has to many colors I think 24 bit png, I dont think it supports that)

it connects its basic i just generated it

KJS 09-19-2001 07:45 AM

so the levels are connecting (meaning nothing is wrong with the txt file)....

but then it is the picture (what I always to is convert it to a .gif then use graals gif2mng program to convert it into a png... I do that even if it is already a .png)

it also could be that you have 2 file names the same...

Merlin 09-19-2001 07:49 AM

1 Attachment(s)
It's this script
if (playerenters) {
setmap graalmap.png, bigmap.txt, x,y;
}

with this image

KJS 09-19-2001 07:50 AM

Quote:

Originally posted by Merlin
It's this script
if (playerenters) {
setmap graalmap.png, bigmap.txt, x,y;
}

with this image

just try making it a gif then do it...

and if that works then use graals gif2mng converter

Merlin 09-19-2001 07:50 AM

1 Attachment(s)
and this txt

Merlin 09-19-2001 07:52 AM

i changed to gif and it worked thanks :)

KJS 09-19-2001 07:55 AM

Quote:

Originally posted by Merlin
i changed to gif and it worked thanks :)
see now you can use the gif2mng program graal supplies...

the reason I think it doesn't work with the file graal creates for the map is because I think the png that the game makes is 24 bit and I dont think graal supports 24 bit...


All times are GMT +2. The time now is 05:09 AM.

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