All times are UTC





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Remove objects without deleting and title code segments
PostPosted: June 9th, 2015, 3:24 am 
Offline
New Member
User avatar

Joined: June 4th, 2015, 12:00 am
Posts: 3
Has thanked: 14 times
Been thanked: 3 times
In my delving of other people's code I noticed that many people don't have anything to help sort out what's what in the code.

Now, this may just be me, since I took several classes in webdesign, but I like to have an occasional note so I can know what I'm looking at in the raw code, rather than search for 30 minutes just to find the one thing I need. So I played around a bit with the code and I found this neat little trick:

Spoiler:
//main.center.area;
/wooden.post.structure;
custom,cylinder,bark4,3,7,3,0,1,1,1,1,2,-30,0,-30,0,0,0,1;
custom,cylinder,bark4,3,7,3,0,1,1,1,1,2,30,0,-30,0,0,0,1;
custom,cylinder,bark4,3,7,3,0,1,1,1,1,2,-30,0,30,0,0,0,1;
custom,cylinder,bark4,3,7,3,0,1,1,1,1,2,30,0,30,0,0,0,1;
custom,cuboid,bark4,5,1,1,0,1,1,1,2,1,0,64.8,30,0,0,0,1;
custom,cuboid,bark4,1,1,5,0,1,1,1,.5,2,30,64.8,0,0,0,0,1;
custom,cuboid,bark4,5,1,1,0,1,1,1,2,1,0,64.8,-30,0,0,0,1;
custom,cuboid,bark4,1,1,5,0,1,1,1,.5,2,-30,64.8,0,0,0,0,1;
/metal.center;
custom,cone,metal2,.75,1,.75,0,1,1,1,1,1,-3.5,70.5,0,0,0,-360,1;
custom,cone,metal2,.75,1,.75,0,1,1,1,1,1,0,95,0,0,0,0,1;
custom,cylinder,metal2,.25,7,.25,0,1,1,1,.4,7,-1.7,0,1,0,0,0,1;

you can use "/" to nullify any strand of script for the level editor.
so if we want only the posts, we would only need to do this:
Spoiler:
//main.center.area;
/wooden.post.structure;
custom,cylinder,bark4,3,7,3,0,1,1,1,1,2,-30,0,-30,0,0,0,1;
custom,cylinder,bark4,3,7,3,0,1,1,1,1,2,30,0,-30,0,0,0,1;
custom,cylinder,bark4,3,7,3,0,1,1,1,1,2,-30,0,30,0,0,0,1;
custom,cylinder,bark4,3,7,3,0,1,1,1,1,2,30,0,30,0,0,0,1;
/custom,cuboid,bark4,5,1,1,0,1,1,1,2,1,0,64.8,30,0,0,0,1;
/custom,cuboid,bark4,1,1,5,0,1,1,1,.5,2,30,64.8,0,0,0,0,1;
/custom,cuboid,bark4,5,1,1,0,1,1,1,2,1,0,64.8,-30,0,0,0,1;
/custom,cuboid,bark4,1,1,5,0,1,1,1,.5,2,-30,64.8,0,0,0,0,1;
/metal.center;
/custom,cone,metal2,.75,1,.75,0,1,1,1,1,1,-3.5,70.5,0,0,0,-360,1;
/custom,cone,metal2,.75,1,.75,0,1,1,1,1,1,0,95,0,0,0,0,1;
custom,cylinder,metal2,.25,7,.25,0,1,1,1,.4,7,-1.7,0,1,0,0,0,1;

And as you've probably noticed I have "/" set in front of what I'll call "mimic code." you can type whatever you want there so long as you don't use spaces (haven't tried with spaces, so I may be wrong), and end it with a semicolon: ";" so it does not read it with the next line of actual code.

I also use "/" at the beginning of titles/categories to avoid confusing myself.

Just thought it was neat, hope it helps someone!

tl;dr:
use: "/" to nullify code strands
use: ";" at the end of non-code to create reference titles for yourself in the code

_________________
I will take requests once I get a few more skin designs under my belt.
Image
Satomi Rentaro


Last edited by Jumpshift on June 9th, 2015, 3:56 pm, edited 1 time in total.

Top
 Profile  
 


 Post subject: Re: Remove objects without deleting and title code segments
PostPosted: June 9th, 2015, 4:59 am 
Offline
Veteran Member
User avatar

Joined: April 2nd, 2015, 2:59 pm
Posts: 158
Has thanked: 15 times
Been thanked: 16 times
Should have put this in the tutorial section instead.

_________________
Spoiler:
Image

Spoiler:


Top
 Profile  
 
 Post subject: Re: Remove objects without deleting and title code segments
PostPosted: June 9th, 2015, 3:57 pm 
Offline
New Member
User avatar

Joined: June 4th, 2015, 12:00 am
Posts: 3
Has thanked: 14 times
Been thanked: 3 times
Edited to fit the category, thanks for the move.

_________________
I will take requests once I get a few more skin designs under my belt.
Image
Satomi Rentaro


Top
 Profile  
 


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Style created by © Matti, gry komputerowe, alveo witaminy zdrowie witaminy

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group