Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   tile set problems? (https://forums.graalonline.com/forums/showthread.php?t=77427)

theHAWKER 11-04-2007 01:17 AM

tile set problems?
 
im trying to get a tile set to work and what ever i do it wont work.

ive tryed adding my tile set ive put it in 8 bit and i checked the script but still no...

so i tryed to add pics1.png and that dini't work...


so is there a new way to add it, or something? like addtiledef(blablabal);???

dereklarue 11-04-2007 04:05 AM

Hmm
 
Ive had some problems to.
what i did to make it work is:
I added an npc in the level and scripted the following and it worked:


//#CLIENTSIDE
addtiledef levelname.png,,0;


That should work else im not sure...
-derek

Arch_Angel 11-04-2007 05:52 AM

Try adding a weapon named '-Tiles' .

In the script put
HTML Code:

//#CLIENTSIDE
function onCreated()
{

  removetiledefs(" ");

  addtiledef "TILENAMEHERE","","";
}

Then apply the weapon to add it.
Next edit that atts of your guy and click the 'Weapons' tab and type int he name you gave the script you just made. (Should be -Tiles if you named it what I said up top) Then make sure you tiles are uploaded in the levels/images folder just to make sure that they are there. Now your tiles should properly show up in your playerworld.

More Advanced: If you want different Tiles for different GMaps, then in the tile script put
HTML Code:

//#CLIENTSIDE
function onCreated()
{

  removetiledefs(" ");

  addtiledef "TILENAMEHERE","GMAP NAME","1";
}

So if I have a Gmap that is named ovrwld-1_ and another Gmap named ovrwld-2_ and I wanted ovrwld-1_ to have tiles named winter_tileset.png and I want ovrwld-2_ Gmap to have tiles summer_tileset.png. then in my script I would put
HTML Code:

//#CLIENTSIDE
function onCreated()
{

  removetiledefs(" ");

  addtiledef "winter_tileset.png","ovrwld-1_","1";
  addtiledef "summer_tileset.png","ovrwld-2_","1";
}

Now both of those diff Gmaps will have two different tilesets. :D If I'm wrong on any of this please correct me.

Well if you have any problems with these tiles still not working forum PM me.
(NOTE: Don't forget to add the weapons/NPC you just made to your atts on your player. You can have the npc added automatically upon login. If you need help with that forum PM me also, I would be glad to help you :))

Crow 11-04-2007 12:12 PM

Why are you mixing it?

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
removetiledefs("");

  
addtiledef("winter_tileset.png","ovrwld-1_",1);
  
addtiledef("summer_tileset.png","ovrwld-2_",1);



theHAWKER 11-04-2007 09:43 PM

umm for the editor, not the server

Arch_Angel 11-04-2007 09:46 PM

For the editor just put

PHP Code:

//#CLIENTSIDE
if (created) {
  
removetiledefs;
  
addtiledef TILESETNAME,,;
}
if (
playertouchsme) {


That worked right for me with my tiles. Depends on which tiles you are going to use.

TSAdmin 11-05-2007 05:59 AM

A little off topic, but why do people start threads that have a question mark after a statement?

"Tileset Problems?" for example... To me that kinda says "Click here if you're having tileset problems, I have just made a thread with the solution" and then having clicked it, it's "I have a problem, please help"... I don't get why people do that.

Angel_Light 11-05-2007 07:31 AM

maybe they want us to think it rhetorically, good point though.

theHAWKER 11-06-2007 01:12 AM

Quote:

Originally Posted by Arch_Angel (Post 1356365)
For the editor just put

PHP Code:

//#CLIENTSIDE
if (created) {
  
removetiledefs;
  
addtiledef TILESETNAME,,;
}
if (
playertouchsme) {


That worked right for me with my tiles. Depends on which tiles you are going to use.

are you sure it can be client side if its for the editor? considering that the client isn't open??

Twinny 11-06-2007 01:21 AM

Quote:

Originally Posted by theHAWKER (Post 1356595)
are you sure it can be client side if its for the editor? considering that the client isn't open??

If anything, level editor will read the line as a comment :whatever:

Arch_Angel 11-06-2007 02:35 AM

lol...

Angel_Light 11-06-2007 02:56 AM

Quote:

Originally Posted by theHAWKER (Post 1356595)
are you sure it can be client side if its for the editor? considering that the client isn't open??

yes the editor has a "client and server", just no NPC Control, etc

theHAWKER 11-08-2007 02:53 AM

humm, thx guys it was a problem with teh images i was useing :D

zokemon 11-08-2007 11:04 PM

Quote:

Originally Posted by Angel_Light (Post 1356645)
yes the editor has a "client and server", just no NPC Control, etc

No, there is no serverside when offline.


All times are GMT +2. The time now is 12:04 AM.

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