Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-04-2011, 11:22 PM
WaDaFack WaDaFack is offline
*
WaDaFack's Avatar
Join Date: May 2007
Posts: 419
WaDaFack is an unknown quantity at this point
Exclamation Glitched Graal Editor..

I took pics1.png and edited 1 tile on it, and ever since I tried loading it, my entier Graal Editor is all bugged. Even re-installing it won't work. I can't even use pics1.png anymore x.x anyone know what the problem is?
The code I'm using..
NPC Code:
// NPC made by WaDaFack
if (created) {
}
addtiledef pics1.png,new2.nw,0;



This is what I see..
__________________
WaDaFack

Reply With Quote
  #2  
Old 01-04-2011, 11:23 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
addtiledef is not even inside the if (created) lol

GS1:
PHP Code:
// NPC made by WaDaFack
//#CLIENTSIDE
if (created) {
addtiledef pics1.png,new2.nw,0;


GS2:
PHP Code:
// NPC made by WaDaFack
//#CLIENTSIDE
function onCreated() {
addtiledef("pics1.png",new2.nw,0);

Reply With Quote
  #3  
Old 01-04-2011, 11:24 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
pics1.png has to be in the main Graal directory. I'm not sure if you can modify it, but try renaming it to pics1_edit.png and adding the original back and seeing if that fixes your problems.

Quote:
Originally Posted by Soala View Post
addtiledef is not even inside the onCreated function lol
It wouldn't work if it was.

edit since you edited yours: that's still not the problem

edit again since you edited yours again:

PHP Code:
// NPC made by WaDaFack 
//#CLIENTSIDE 
function onCreated() { 
addtiledef("pics1.png",new2.nw,0); 

needs quotes around new2.nw
__________________
Reply With Quote
  #4  
Old 01-04-2011, 11:26 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
I just realized it was pics1... isn't it supposed to load by default?
I usualy get black tiles over the screen when something's wrong, not a huge load of ****ed up imgs. Weird.
Reply With Quote
  #5  
Old 01-04-2011, 11:36 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
If you used Paint it up-converted it to 24-bit colors, you'll need to lower the colors to 8-bit/256 Colors using IrfanView or other image editing packages.
__________________
Quote:
Reply With Quote
  #6  
Old 01-04-2011, 11:47 PM
WaDaFack WaDaFack is offline
*
WaDaFack's Avatar
Join Date: May 2007
Posts: 419
WaDaFack is an unknown quantity at this point
I put that, and it still doesn't work.. everything is black and white now.
NPC Code:
// NPC made by WaDaFack
//#CLIENTSIDE
if (created) {
addtiledef pics1.png,new2.nw,0;
}



Oh, and for my tileset, I'm not really concentrating on that atm. Just trying to get pics1.png to work first.. x.x
__________________
WaDaFack

Reply With Quote
  #7  
Old 01-04-2011, 11:49 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by WaDaFack View Post
Oh, and for my tileset, I'm not really concentrating on that atm. Just trying to get pics1.png to work first.. x.x
PHP Code:
if (created) {
  
removetiledefs;

Done.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 01-04-2011, 11:53 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by xXziroXx View Post
PHP Code:
function onCreated() {
  
removetiledefs();

Done.
fixed
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #9  
Old 01-04-2011, 11:55 PM
WaDaFack WaDaFack is offline
*
WaDaFack's Avatar
Join Date: May 2007
Posts: 419
WaDaFack is an unknown quantity at this point
Quote:
Originally Posted by xXziroXx View Post
PHP Code:
if (created) {
  
removetiledefs;

Done.
Thanks! This worked, thanks to everyone tried to help too!
__________________
WaDaFack

Reply With Quote
  #10  
Old 01-05-2011, 12:07 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Fulg0reSama View Post
fixed
Don't be a smart ass, he wants it for the editor.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #11  
Old 01-05-2011, 12:51 AM
StormYs StormYs is offline
Registered User
StormYs's Avatar
Join Date: May 2005
Posts: 483
StormYs will become famous soon enough
ooo a scripting battle
Reply With Quote
  #12  
Old 01-05-2011, 12:54 AM
nullify nullify is offline
Registerd Abuser
nullify's Avatar
Join Date: May 2004
Location: The cheese state.
Posts: 851
nullify has a spectacular aura about
Ziro was the victor.
Reply With Quote
  #13  
Old 01-05-2011, 01:31 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by nullify View Post
Ziro was the victor.
Didn't even break a sweat.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #14  
Old 01-05-2011, 01:34 AM
nullify nullify is offline
Registerd Abuser
nullify's Avatar
Join Date: May 2004
Location: The cheese state.
Posts: 851
nullify has a spectacular aura about
Unfortunately you beat me to it.
Reply With Quote
  #15  
Old 01-05-2011, 01:34 AM
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 nullify View Post
Ziro was the victor.
Especially since there was an error in Fulg0re's script.
__________________
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 08:29 AM.


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