Graal Forums  

Go Back   Graal Forums > Development Forums > Graphic Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 09-01-2010, 06:38 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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.
Reply With Quote
  #17  
Old 09-05-2010, 07:19 PM
thepimp thepimp is offline
Registered User
thepimp's Avatar
Join Date: Aug 2010
Posts: 94
thepimp will become famous soon enough
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
}
Reply With Quote
  #18  
Old 09-05-2010, 07:39 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Unhappy

Quote:
Originally Posted by thepimp View Post
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.
Reply With Quote
  #19  
Old 09-05-2010, 07:52 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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 View Post
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.
__________________
Reply With Quote
  #20  
Old 09-05-2010, 08:02 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Quote:
Originally Posted by cbk1994 View Post


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.
Reply With Quote
  #21  
Old 09-05-2010, 08:03 PM
thepimp thepimp is offline
Registered User
thepimp's Avatar
Join Date: Aug 2010
Posts: 94
thepimp will become famous soon enough
cbk i copied and pasted the second code onto it and the original pics1 tileset got deleted and the entire level went black.
Reply With Quote
  #22  
Old 09-05-2010, 08:05 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Quote:
Originally Posted by thepimp View Post
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.
Reply With Quote
  #23  
Old 09-05-2010, 08:06 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Soala View Post
meh I somehow thought he would use it online too
Quote:
Originally Posted by thepimp View Post
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 View Post
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 View Post
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?
__________________
Reply With Quote
  #24  
Old 09-05-2010, 08:18 PM
thepimp thepimp is offline
Registered User
thepimp's Avatar
Join Date: Aug 2010
Posts: 94
thepimp will become famous soon enough
ok.


file:
Attached Thumbnails
Click image for larger version

Name:	revernia_tileset.png
Views:	120
Size:	442.3 KB
ID:	51649  

Last edited by thepimp; 09-05-2010 at 09:14 PM..
Reply With Quote
  #25  
Old 09-05-2010, 08:45 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
Shouldn't techno doggeh be in that tileset?
Reply With Quote
  #26  
Old 09-05-2010, 08:58 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
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.
Reply With Quote
  #27  
Old 09-05-2010, 09:00 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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).
__________________
Reply With Quote
  #28  
Old 09-05-2010, 09:03 PM
thepimp thepimp is offline
Registered User
thepimp's Avatar
Join Date: Aug 2010
Posts: 94
thepimp will become famous soon enough
Quote:
Originally Posted by Soala View Post
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?
Reply With Quote
  #29  
Old 09-05-2010, 09:08 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Quote:
Originally Posted by thepimp View Post
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
Reply With Quote
  #30  
Old 09-05-2010, 09:12 PM
thepimp thepimp is offline
Registered User
thepimp's Avatar
Join Date: Aug 2010
Posts: 94
thepimp will become famous soon enough
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:13 PM.


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