Graal Forums

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

xfazex 02-28-2009 07:08 AM

Tilesets
 
Does anyone have some useful tilesets for a modern server? I need the full thing, doesn't need to be complete, a good bit complete would help but at least some sidewalks, grass, and maybe some buildings would be good.. chairs would be nice too. I can provide you an email if you can help me out. I'd really appriciate it.

Bell 02-28-2009 10:05 AM

Dusty and a few others have provided some free tiles here that you could use to put something together.

http://forums.graalonline.com/forums...ad.php?t=73707

xfazex 02-28-2009 06:35 PM

Ah sweet. Is there an empty template out there so I know where everything goes? The one I have doesn't really work. Anything I place, even if grass or asphalt, I can't walk on.

maximus_asinus 02-28-2009 06:51 PM

This thread has a large amount of templates posted by a number of people, should be what you're looking for.

xfazex 03-01-2009 01:53 AM

So here's a stupid question... I assume I can just grab the second post in http://forums.graalonline.com/forums...ad.php?t=53219 << that thread, and just drop in whatever I need into the right areas of the png?

xfazex 03-01-2009 08:36 AM

Also, I made up a small tileset with a few things to get started... The tileset shows up blank... saved as 8 bit png in photoshop, don't get it.

Codein 03-01-2009 12:13 PM

Quote:

Originally Posted by xfazex (Post 1470226)
So here's a stupid question... I assume I can just grab the second post in http://forums.graalonline.com/forums...ad.php?t=53219 << that thread, and just drop in whatever I need into the right areas of the png?

Yeah.

Quote:

Originally Posted by xfazex (Post 1470254)
Also, I made up a small tileset with a few things to get started... The tileset shows up blank... saved as 8 bit png in photoshop, don't get it.

Show me the image you're using.

Soala 03-01-2009 02:30 PM

8 bit png and all is fine, but you must know that there are 2 type of tileset, which include numbers to put in your script, the very last part

Type 0: Classic tileset type, like pics1.png
Type 1: Organized tileset, for modern servers like the one you want to make

For anything else, THIS should help you

For the blank part uuhm... Try to upload it on your server, restart graal and it should be fine ?

xfazex 03-01-2009 03:15 PM

Well here's what I did (this is in graal editor and cs2)

1. Get that blank template
2. Whip up a couple tiles (sidewalk, some walls, etc)
3. Save as 8 bit png
4. make npc in graal editor to import
5. tiles show up gray

Seems right to me?

xfazex 03-01-2009 06:32 PM

Also, I did manage to get one tileset working... But I can't walk anywhere.. Grass, sidewalk, anything. The tiles I'm talking about are in the non-blocking area. I have no idea why this is happening.

Codein 03-01-2009 08:07 PM

Quote:

Originally Posted by xfazex (Post 1470332)
Also, I did manage to get one tileset working... But I can't walk anywhere.. Grass, sidewalk, anything. The tiles I'm talking about are in the non-blocking area. I have no idea why this is happening.

Are you sure you've put in:

addtiledef tilesetname,level prefix,1;
The 1 being important for new style tilesets.

xfazex 03-01-2009 09:09 PM

So it needs to be like this?

addtiledef faze-tileset.png,dmosl.nw prefix,1;

Not sure what prefix is for.

Codein 03-01-2009 09:47 PM

Leave off prefix, it was the whole word you had to replace. Just use dmosl.nw.

xfazex 03-01-2009 10:12 PM

So... and correct me on punctuation:

addtiledef faze-tileset.png,demosl.nw,1;

Codein 03-01-2009 10:19 PM

Quote:

Originally Posted by xfazex (Post 1470371)
So... and correct me on punctuation:

addtiledef faze-tileset.png,demosl.nw,1;

Should work :)

xfazex 03-01-2009 10:21 PM

Hmm, it didn't work... Nothing changes.

Codein 03-01-2009 10:31 PM

Try this:

removetiledefs;
addtiledef faze-tileset.png,demosl.nw,1;

xfazex 03-01-2009 10:35 PM

The tileset section on the right just turns gray.

When I rename pics1 to something else, and rename my tileset to pics1, it works; but I can't walk on anything.

maximus_asinus 03-01-2009 10:40 PM

It is essential you determine whether or not you're using Classic style, or Modern style tilesets before you continue taking advice. If you're taking the wrong advice, you're just making extra work for yourself.

FOR OFFLINE ONLY:

Instead of using 'addtiledef' for now, we'll focus of adding the tiledef manually:

Navigate to your 'Graal' folder. From there go to the 'Levels' folder, then the 'tiledefs' folder. Once this folder is open look for 'tiledefsOffline.txt', and open it.

Insert below:
TILESET NAME, PREFIX, TILE TYPE,0,0

TILESET NAME - the name of your tileset. For your case 'faze-tileset.png'
PREFIX - basically the name of the levels you want these tiles to work with. If you have a number of levels you want this to work with use a prefix like "faze_" at the beginning of the levels you want the tileset tied to, and then add "faze_" to where it says prefix (above).
TILE TYPE - '1' for Modern Style tiles, '0' for Classic.

Once you've added the line (with the modifications mentioned above), save the text file, and open the editor (if you did this with the editor open, simply close and reopen).

xfazex 03-01-2009 10:50 PM

K, I'll give that a shot. I assume there's a similar process for when I upload the completed maps?

xfazex 03-02-2009 01:16 AM

Still doesn't work. The tileset shows up as nothing but gray. Tried classic and modern, file contents look like this:

faze-tileset.png,dem_,0

maximus_asinus 03-02-2009 02:46 AM

faze-tileset.png,dem_,0,0,0

Paste that into the offlinetiledef document, then boot up the editor and open a level with 'dem_' prefix, then take a screenshot.

xfazex 03-02-2009 02:53 AM

1 Attachment(s)
What happens:

Rufus 03-02-2009 02:56 AM

Post your tileset?

xfazex 03-02-2009 03:01 AM

1 Attachment(s)
The tileset:

maximus_asinus 03-02-2009 03:14 AM

You're using the modern tileset for one, and the error seems to be how you saved the image. You're using 8-png right?

Off topic, they support 32 bit ONLINE don't they?

xfazex 03-02-2009 03:17 AM

Well I tried with modern and classic, so that's a moot point. Used I used PNG-8.

Rufus 03-02-2009 03:31 AM

Okay your tileset works offline for me. Make sure that the tileset is in the same folder as the level that you're loading and use this:

PHP Code:

addtiledef faze-tileset.png,dem_,1


xfazex 03-02-2009 03:57 AM

Wow I'm a total idiot lol. Thanks.

How about when I upload everything via RC? How do I involve my tileset there?

Rufus 03-02-2009 04:14 AM

Quote:

Originally Posted by xfazex (Post 1470487)
Wow I'm a total idiot lol. Thanks.

How about when I upload everything via RC? How do I involve my tileset there?

I understand lol, it's a pain in the ass. Make sure your levels and tileset are uploaded, create a Weapon NPC named something like "-Tiles" and add something like this in it.

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
addtiledef("faze-tileset.png","dem_",1);


Make sure you add the weapon NPC to everyone, which is usually done by Control-NPC in the first button of NC. That script will obviously only apply the tileset to the levels beginning with "dem_" however, but you can add new lines in or just remove the "dem_" part. I've found that modern servers work better with a separate tileset for the overworld and outside levels to the tileset of insides, so it might be good form for you to keep that setup.

xfazex 03-02-2009 04:16 AM

Quote:

Originally Posted by Rufus (Post 1470495)
Make sure your levels and tileset are uploaded, create a Weapon NPC named something like "-Tiles" and add something like this in it.

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
addtiledef("faze-tileset.png","dem_",1);


Make sure you add the weapon NPC to everyone, which is usually done by Control-NPC in the first button of NC.

So just a normal WNPC? Alright, I already used the control-npc for my emoticons script. I assume I can just copy that text, make another and just replace the weapon name? I forget how that script looks offhand.

Rufus 03-02-2009 04:22 AM

Quote:

Originally Posted by xfazex (Post 1470496)
So just a normal WNPC? Alright, I already used the control-npc for my emoticons script. I assume I can just copy that text, make another and just replace the weapon name? I forget how that script looks offhand.

Yeah, a regular Weapon NPC should do, unless you want to include it into a "System" NPC so you don't have tons of NPCs for different things. It all depends on how the script is in NPC-Control, but you can probably something like "Emoticons","Tiles" so you don't have to keep reusing the same script.

xfazex 03-02-2009 07:06 AM

Quote:

Originally Posted by Rufus (Post 1470498)
Yeah, a regular Weapon NPC should do, unless you want to include it into a "System" NPC so you don't have tons of NPCs for different things. It all depends on how the script is in NPC-Control, but you can probably something like "Emoticons","Tiles" so you don't have to keep reusing the same script.

So right now, my sys NPC looks like this...

PHP Code:

function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions"); 

I assume this will work?

PHP Code:

function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions","-System/Tiles"); 


Codein 03-02-2009 04:37 PM

Quote:

Originally Posted by xfazex (Post 1470529)
So right now, my sys NPC looks like this...

PHP Code:

function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions"); 

I assume this will work?

PHP Code:

function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions","-System/Tiles"); 


You'd have to do:

PHP Code:

player.addweapon("-System/Emotions");
player.addweapon("-System/Tiles"); 


Deas_Voice 03-02-2009 07:02 PM

Quote:

Originally Posted by xfazex (Post 1470529)
I assume this will work?

PHP Code:

function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions","-System/Tiles"); 


nope, if you want a array of weapons u better do a for() loop
like this:
PHP Code:

temp.weapons = {"wep1","wep2","ect"};
for (
loopweps temp.weaponsaddWeapon(temp.loopweps); 

or use Codein's :D

Codein 03-02-2009 07:23 PM

Quote:

Originally Posted by Deas_Voice (Post 1470678)
PHP Code:

temp.weapons = {"wep1","wep2","ect"};
for (
loopweps temp.weaponsaddWeapon(temp.loopweps); 


Yeah, I recommend this.

xfazex 03-03-2009 01:59 AM

Does anyone have any interior textures i can use for this? (walls would be most helpful right now)

Elk 03-03-2009 09:47 PM

Quote:

Originally Posted by xfazex (Post 1470771)
Does anyone have any interior textures i can use for this? (walls would be most helpful right now)

Make them yourself

maximus_asinus 03-03-2009 11:01 PM

Quote:

Originally Posted by Elk (Post 1471060)
Make them yourself

Yes, very helpful.

xnervNATx 03-04-2009 01:06 AM

Quote:

Originally Posted by Elk (Post 1471060)
Make them yourself

thx elk , that helped


All times are GMT +2. The time now is 02:43 PM.

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