Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graphic Design (https://forums.graalonline.com/forums/forumdisplay.php?f=9)
-   -   tileset help. (https://forums.graalonline.com/forums/showthread.php?t=134260393)

DustyPorViva 09-01-2010 06:38 AM

I'll just say it's pointless to try to recolor pics1 to your liking. There are a few reasons as to why:
1) It rarely looks better.
2) Because of what you did... just messed with contrast/brightness.
3) People are familiar with pics1. Changing it invokes familiarity but with a huge topping of "eww, I hate change." Especially when combined with above reasons.
4) What's the point?

Also, ditch the emphasized shadows. Rarely does a game pull it off artfully, and I can't say I've ever seen a 2d game do it. In fact, only a few games come to mind. One is Okami, and the other are a few comic-book-based artstyle games... which I can't even recall by name. Again, like I said... can't say I've ever seen it in any 2d games... Though I guess NES games did it, but that had more to do with limitations than anything. Never on a top-down game, only platformers. Just don't waste the effort.

thepimp 09-05-2010 07:19 PM

new problem. i am using this code to try and use my tileset (not that one a new one i made with alot more stuff) on the offline editor. i saved it as revernia_tileset. Any tips on what i did wrong?

//#CLIENTSIDE
if (created) {
addtiledef revernia_tileset.png}
1
}

Soala 09-05-2010 07:39 PM

Quote:

Originally Posted by thepimp (Post 1599022)
new problem. i am using this code to try and use my tileset (not that one a new one i made with alot more stuff) on the offline editor. i saved it as revernia_tileset. Any tips on what i did wrong?

//#CLIENTSIDE
if (created) {
addtiledef revernia_tileset.png}
1
}

1: You're using GS1! Use GS2!
2:Your code is wrong!

Hint:

//#CLIENTSIDE
function onCreated() {
addtiledef revernia_tileset.png,#L,1;
}

#L can be replaced by the level name but will do if you try it on one level in offline editor
1 being the type of the tileset. I guess you're going for the organized type, if it was made on a template such as pics1.png, then the type is 0.

cbk1994 09-05-2010 07:52 PM

PHP Code:

//#CLIENTSIDE
if (created) {
addtiledef revernia_tileset.png}
1


The problem is that your addtiledef statement is wrong.

PHP Code:

//#CLIENTSIDE
if (created) {
  
addtiledef revernia_tileset.png#L, 0;


As Soala said, you can replace #L with the name of the level or the level start (such as revernia_ if all your levels start with revernia_), or leave it blank if you want it to apply to all levels.

If the tileset is a 'type 1' tileset you will need to change the '0' at the end to a '1'. Type 0 tilesets are laid out like pics1.png whereas type 2 tilesets are laid out like Era's, GK's, etc.

You should delete the script before uploading to a server. The GS2 equivalent (for online use) is:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
addTileDef("revernia_tileset.png"this.level.name0);


Quote:

Originally Posted by Soala (Post 1599028)
1: You're using GS1! Use GS2!
2:Your code is wrong!

Hint:

//#CLIENTSIDE
function onCreated() {
addtiledef revernia_tileset.png,#L,1;
}

#L can be replaced by the level name but will do if you try it on one level in offline editor
1 being the type of the tileset. I guess you're going for the organized type, if it was made on a template such as pics1.png, then the type is 0.

Please stop giving scripting advice. Your intentions may be true, but you're doing a lot more damage than good.

He said he was using the offline editor, so he needs to use GS1.

In addition, the "hint" you gave was even worse than the original snippet he provided in that it combines GS1 and GS2.

Soala 09-05-2010 08:02 PM

Quote:

Originally Posted by cbk1994 (Post 1599030)


Please stop giving scripting advice. Your intentions may be true, but you're doing a lot more damage than good.

He said he was using the offline editor, so he needs to use GS1.

In addition, the "hint" you gave was even worse than the original snippet he provided in that it combines GS1 and GS2.

meh I somehow thought he would use it online too
also, I'm no scripter, but what I did usualy works for me. Do you mean I forgot like the () and ""? I never thought those were really needed, my bad.

thepimp 09-05-2010 08:03 PM

cbk i copied and pasted the second code onto it and the original pics1 tileset got deleted and the entire level went black.

Soala 09-05-2010 08:05 PM

Quote:

Originally Posted by thepimp (Post 1599032)
cbk i copied and pasted the second code onto it and the original pics1 tileset got deleted and the entire level went black.

now it's a problem with your tileset. Make sure your tileset is a 8bit png, that would most likely fix it if it is not.

cbk1994 09-05-2010 08:06 PM

Quote:

Originally Posted by Soala (Post 1599031)
meh I somehow thought he would use it online too

Quote:

Originally Posted by thepimp (Post 1599022)
new problem. i am using this code to try and use my tileset (not that one a new one i made with alot more stuff) on the offline editor.

Quote:

Originally Posted by Soala (Post 1599031)
also, I'm no scripter, but what I did usualy works for me. Do you mean I forgot like the () and ""? I never thought those were really needed, my bad.

There are a few problems:
PHP Code:

//#CLIENTSIDE
function onCreated() {
addtiledef revernia_tileset.png,#L,1;


  • Functions need to have parentheses surrounding the parameters, e.g. addTileDef(whatever, goes, here);
  • Since you're now using GS2 and not GS1 strings need to be enclosed in quotation marks, e.g. addTileDef("revernia_tileset.png", #L, 1);
  • #L is GS1 and not valid in GS2. The proper replacement is either player.level.name or this.level.name. In this case, the latter. addTileDef("revernia_tileset.png", this.level.name, 1);

Quote:

Originally Posted by thepimp (Post 1599032)
cbk i copied and pasted the second code onto it and the original pics1 tileset got deleted and the entire level went black.

Can you attach the tileset?

thepimp 09-05-2010 08:18 PM

1 Attachment(s)
ok.
http://a.imageshack.us/img202/7920/reverniatileset.png

file:

Dnegel 09-05-2010 08:45 PM

Shouldn't techno doggeh be in that tileset?

Soala 09-05-2010 08:58 PM

Your tileset name is different than the one used in the script and it is also a 24bit png.
I can't really remember if 24bit png's work in offline editor, but best would be to make it 8bit. Try using the correct filename in the script first and see if it changes anything, if not then just make a second version of your tileset to use in offline editor only, and as 8bit png, then use the first one (24bit) online.

cbk1994 09-05-2010 09:00 PM

24-bit PNGs don't work in the editor. Soala is correct, you should use two different tilesets if you require >256 colors (one online, one offline).

thepimp 09-05-2010 09:03 PM

Quote:

Originally Posted by Soala (Post 1599046)
Your tileset name is different than the one used in the script and it is also a 24bit png.
I can't really remember if 24bit png's work in offline editor, but best would be to make it 8bit. Try using the correct filename in the script first and see if it changes anything, if not then just make a second version of your tileset to use in offline editor only, and as 8bit png, then use the first one (24bit) online.

whats different about the name?

Soala 09-05-2010 09:08 PM

Quote:

Originally Posted by thepimp (Post 1599049)
whats different about the name?

oh nevermind about this one, I saved the first image, not the thumbnail, and it saved as reverniatileset.png and not revernia_tileset.png >_<

thepimp 09-05-2010 09:12 PM

i did the same thing as before again only this time i saved it as an 8 bit file and renamed the 8 bit file to revernia_tileset2.png copied the code, changed it to the new files name, clicked close, and everything went black again.


All times are GMT +2. The time now is 07:58 PM.

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