Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-16-2006, 12:29 AM
Drakeero Drakeero is offline
Registered User
Join Date: Jan 2004
Posts: 507
Drakeero will become famous soon enough
Pesky Fence

There's this single block of wooden fence. It's not something a player put down, it can't be destroyed, it draws over the player, you can walk through it, and worst of all the editor doesn't even realize its there. I can't even select it and delete it. It's as if its a permanent part of the terrain. If I lower the land around, it just floats on top of the water. It floats on top of other buildings. It draws over everything, it's not even like I can put something else ontop of it to hide it.

How do I get RID of that thing? It's in the way, it's an eyesore, but I can't select it in the editor.

Last edited by Drakeero; 10-16-2006 at 12:32 AM.. Reason: Additional Information
Reply With Quote
  #2  
Old 10-16-2006, 12:41 AM
_Z3phyr_ _Z3phyr_ is offline
Banned
Join Date: Sep 2003
Location: Louisiane
Posts: 390
_Z3phyr_ is an unknown quantity at this point
A screenshot would be great man.

Just on the off-chance you don't know how so I don't have to post again if you say "How do I do that?":
Press PrntScrn (usually just to the right of your F12 button) and open MSPaint or something and then Ctrl+V to paste. Save it and upload it to imageshack.us and then copy/paste the link here.
Reply With Quote
  #3  
Old 10-16-2006, 12:58 AM
Drakeero Drakeero is offline
Registered User
Join Date: Jan 2004
Posts: 507
Drakeero will become famous soon enough


Hope that works, I've never used imageshack before.
Reply With Quote
  #4  
Old 10-16-2006, 01:25 AM
Drakeero Drakeero is offline
Registered User
Join Date: Jan 2004
Posts: 507
Drakeero will become famous soon enough
Tired of waiting for someone to come ambling back at their own leisure so I'm double posting.

By using "edit as text" I think I found the offending NPC and here's what I believe to be the scripting for it.

NPC fences_woodh.png 57 50
if (created)
drawoverplayer;
//#CLIENTSIDE
if (created || playerenters) {
setarray this.shape,5*3;
for (cx = 0;cx<5;cx++) for (cy = 2;cy<3;cy++)
this.shape[cx+cy*5] = 22;
setshape2 5,3,this.shape;
}
NPCEND


Can I safetly delete this to remove that annoying fence peice you see in the above image?
Reply With Quote
  #5  
Old 10-16-2006, 01:30 AM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Try opening the file in worpad and deleting the NPC manually there.

Edit: Yeah, that's the one.
Reply With Quote
  #6  
Old 10-16-2006, 01:31 AM
Drakeero Drakeero is offline
Registered User
Join Date: Jan 2004
Posts: 507
Drakeero will become famous soon enough
Yeah, that's what I'm trying, I just want to know if that looks like the entire script for thing. Can I delete it and reupload it without destroying all of kingdoms debug? <sarcastic> (meaning can that peice of script be cleanly deleted without causing a bug?)
Reply With Quote
  #7  
Old 10-16-2006, 05:17 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,751
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Yes, everything between NPC and NPCEND is the code for that single NPC. Deleting that text will remove the NPC from the level.
__________________
Save Classic!
Reply With Quote
  #8  
Old 10-16-2006, 05:30 AM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Just cut out the stuff between NPC and NPCEND and paste it into a text file or something if you need to use it later. Kingdoms has about a billion of those fences, though, so you shouldn't have to worry.
Reply With Quote
  #9  
Old 10-16-2006, 06:43 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It is an invalid script though which will not work online anyway (because of the use of this.shape). Normally you should not find that script anywhere on kingdoms.
Replace the script with:

PHP Code:
join fences_woodh
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:06 PM.


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