Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Tileset Problems (https://forums.graalonline.com/forums/showthread.php?t=65184)

RefinoheaT 04-04-2006 04:47 AM

Tileset Problems
 
I edited the current N-Pulse tileset, uploaded it onto the server, put it into a script in the level i wanted, and uploaded the level. It works fine online, but the tileset won't load offline.

Pretty much, i can't make levels with the tileset, which is annoying because I did add a few tiles in a few different places.

The current script I am using is:
NPC Code:

//#CLIENTSIDE
if (created) {
addtiledef2 refino_npulse-tileset.png,refino*,0,0;
}



I tried using regular addtiledef, but that didn't work either. With that script, if I put in any other tileset, such as the custom N-Pulse one, it works just fine. I was wondering why the tileset won't load offline.

Any help will be appriciated. Thanks.

-Refino

Admins 04-04-2006 03:31 PM

Should be 'refino' instead of 'refino*'

Elk 04-04-2006 06:35 PM

//#CLIENTSIDE
if (playerenters||timeout) {
addtiledef2 refino_npulse-tileset.png,refino,0,0;
timeout=0.05;
}

i would do it like that xP

Admins 04-04-2006 06:51 PM

You only need to do it one time, timeout is bad. Actually it is best to put it in an initialization-weapon-script

napo_p2p 04-04-2006 07:30 PM

Maybe also try:

HTML Code:

//#CLIENTSIDE
if (playerenters) {
  removetiledefs;
  addtiledef2 refino_npulse-tileset.png,refino,0,0;
}

Also, as Stefan said, this is best in a weapon initialization script. But, if you are doing this offline, then that should work. Remember to delete the script before uploading (and make sure you do use a weapon initialization script).

RefinoheaT 04-04-2006 10:55 PM

yeah, even after removing the star, it still doesn't work. Even if I try to put it as the image of an NPC, it still doesn't show up in Editor. ie: if i were to put pics1.png, obviously, the whole tileset would be viewable as an NPC. However, when I put my tileset in the image box, it just shows the NPC symbol.

Just for some extra information in case I did something wrong:
-I made it in paint, went into photoshop, and saved it as a .png file.
-No Transparency (Obviously, it's a tileset)

Idk, I can't seem to think of any reason why it wouldn't work offline but it works fine online.

-Refino

Warcaptain 04-04-2006 11:51 PM

It is possible whatever program you used saved it as a 32bit image.. Photoshop tends to do that A LOT.

Cant tell you how angry I get sometimes because it wont seem to save as 8 or 16 bit.

And I'm not even sure tilesets can be 24 bit.

Also, why are you still using GS1?

napo_p2p 04-04-2006 11:56 PM

Quote:

Originally Posted by Warcaptain
Also, why are you still using GS1?

He's trying to get this to work offline. Unfortunately, the only way to do so is to use old gscript.


I would also try maybe having a copy of the tileset in the same folder where you saved your level.

Warcaptain 04-04-2006 11:57 PM

Then its possible it is a 24bit tileset, which dont work offline but do online.

napo_p2p 04-04-2006 11:59 PM

Quote:

Originally Posted by Warcaptain
Then its possible it is a 24bit tileset, which dont work offline but do online.

With Graal4, that is. N-Pulse still supports Graal2, so it is reasonable to assume that the tiles should work with the editor.

RefinoheaT 04-05-2006 09:01 PM

Alright, well I tried saving it as an 8 bit, 256 color in Paint Shop Pro 8. However, when I did that, it distorted all of the colors for some reason. Any suggestion?

-Refino

Warcaptain 04-06-2006 08:14 AM

Paint is not a good place to save colors.

A tileset should probably be 16bit color though, not 8 bit (may be too small with all the colors)

Malinko 04-06-2006 09:11 PM

Quote:

Originally Posted by RefinoheaT
Alright, well I tried saving it as an 8 bit, 256 color in Paint Shop Pro 8. However, when I did that, it distorted all of the colors for some reason. Any suggestion?

-Refino

As people in previous posts of this thread have mentioned, there could be too much colors in the image.

GraalOnline will allow the tileset to function online, but not offline in editor. It makes editor some big black level with a lot of random lines or colors.

To get around this, break the tileset up into more than one image. Like, have it as eight images, then set no transparent colors in Paint Shop Pro, and save it as a .png file.

Then use addtiledef2 to load the images onto the tileset. This will allow the image of the tileset to have nice colors and function.

RefinoheaT 04-06-2006 09:19 PM

That sounds rather interesting. I see that you've done that with your tileset(s), so obviously you've done it and it works.

I'll do that. I appriciate the help guys. Thanks a lot.

-Refino

Warcaptain 04-06-2006 10:37 PM

I would not reccomend breaking it up.

If you can save the tileset as a 16 bit image (which you should be able to) then you should have no problem saving it as one image.

Breaking it up into multiple images was only for when Stefan didnt allow big files to be uploaded.

Malinko 04-06-2006 11:28 PM

Quote:

Originally Posted by Warcaptain
I would not reccomend breaking it up.

If you can save the tileset as a 16 bit image (which you should be able to) then you should have no problem saving it as one image.

Breaking it up into multiple images was only for when Stefan didnt allow big files to be uploaded.

Well, I've seen a number of tilesets with a lot of colors. When saving it with what was suggested, it sometimes loses the color, which people don't like, so breaking up the image into multiple images, then loading it as a tileset with addtiledef2 is a solution around it.

Then again, if the image works online, but wants to use it in editor, but can't, it's possible to just make a low bit version just to create levels, and upload it online with the real image.

Warcaptain 04-07-2006 12:02 AM

Paint always gives problems saving colors like that, use another program like the gimp.


All times are GMT +2. The time now is 01:31 AM.

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