Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

[Tutorial] Removing Edit Mode

Learn more on how to use Sandbox, or submit your own tutorials or resources.

How was my tutorial?

Very Good.
2
67%
Good.
0
No votes
Okay.
1
33%
Bad.
0
No votes
Horrible.
0
No votes
 
Total votes: 3

AndyLangel
Member
Member
Posts: 55
Joined: May 25th, 2010, 12:15 am
Name: Andy

[Tutorial] Removing Edit Mode

Post by AndyLangel »

Hello Everyone,

Welcome to my first tutorial! Today i will guide you through how to remove edit mode from your game... well, for the most part. This tutorial is NOT complete, i can show you how to remove editing from your keys, but i still am unsure where the main menu is configured (not in menus.cfg)- So, what i will show you is how to remove the edit mode bound to the F1 and E keys. This tutorial can work in any game mode, but i will be doing it for the RPG mode (FPS & SSP are very similar).

This tutorial is aiming to allow developers to block their players from editing their game world, this can be of great value when or if developers wish to allow others to PLAY their game, and don't want them EDITING it. Also, keep in mind this is a basic tutorial, this will NOT keep determined people from finding a way around this method, because there are ways around it. I may release a more permanent tutorial on this topic later, which would actually remove the capability to edit from Sandbox. Perhaps it could be a version of Sandbox its self, just without the editing capabilities, and then you would use the normal Sandbox to edit. Anyways, i will not have a permanent solution any time soon, so this will have to do for now.

Getting Started:

Okay, to begin you will need to open up the root directory of your game (such as the Platinum Arts Sandbox folder in your programs).

Image

You will want to navigate to the folder that contains your 'config_rpg.cfg' file, for me- it is located in the 'my_stuff' folder. NOTE: if you want to edit a game mode other than RPG, please open the respective config file. (FPS = config_fps.cfg; SSP = config_ssp.cfg)

Image

Open your 'config_rpg.cfg' with a text editor such as Notepad or Wordpad. Once open, you will want to navigate your way down the file until you locate the key binds section. There, you will find binds for all the keys used in-game.

The (Somewhat) Tricky Part

Okay! We are half way there! Hopefully i haven't lost any of you yet, because it will only get more confusing! I will attempt to keep confusion at a minimum by providing step-by-step instructions for each Game-Mode, along with a lot more pictures! :D

RPG Mode - Okay, so you have your config_rpg.cfg file open, and you have found all the bind key functions (if you haven't, please restart the tutorial). Now, for the RPG game we need to edit out all the key binds that toggle edit mode- which are in this case all F1 keys. In my config file i have 2 separate declarations of the F1 key bind, you must remove BOTH. Though, rather than remove them completely, all you must do is place two forward slashes(//) in front of the bind, that way you don't delete something you might need! Below is the edited version of both binds:

Image

Image

Now save the file and start up a game in RPG mode- if you did all the steps correctly you should not be able to open the edit window with F1. However, if you wish to remove these edits, all you have to do is delete the file you edited, run a game in RPG mode, and a new fixed version will be added back in the same spot.

FPS Mode - Okay, pretty much the same as RPG mode, just the key binds a bit different. You are going to want to open your 'config_rpg.cfg' and scroll down until you get to the key binds. Once again we will be editing out all the keys that toggle the edit mode. In the FPS config, there is only one declaration of the edit mode key bind, but it stretches 4 lines- so be sure you edit out ALL 4 lines! Once you locate the bind, you can edit out all the data with the two forward slashes (//) as i have done below.

Image

Once you have edited it, save the file and test it out in RPG mode. If you want the original file back, delete the file you edited, run a new FPS game, and when you exit out you'll have a brand new config file with working edit mode key binds.

SSP Mode - Once again, same idea. You want to open you 'config_ssp.cfg' file and scroll down until you reach the key binds. The SSP binds are the same as the FPS binds, you are looking to edit out the E key and the associated binds. The files that you musty edit out stretch 4 lines once again, so make sure you edit out all 4 lines. After you place the two forward slashes(//) in front of each line, as i have done below:

Image

You will want to save your file and load up a SSP game. If you don't like your changes, delete the file you modified, run a SSP game, and on exit you will have a new config file.

Conclusion

Well thats all the tutorial i have sadly, and i really wish i knew how to edit out the menu option, but i can assure you that i will look into it. I hope you all enjoyed my tutorial and could follow it easily. Keep an eye out for more tutorials by me, because i plan to make a lot of them! If you have any question or comments, feel free to ask or tell!

How do you like my tutorial style? Post your opinion in the poll, and leave me some feedback! Anything i missed? Anything i can improve on? Let me know!

Also- Keep an eye out for my Advanced Shop Script Tutorial (Sorry GoBologna!)!!! It will be featuring how to set up a shop keeper who will buy and sell items to you! Also, with special code addons for Smelting & Smithing! Plus, i'll even show ya where to put it & how to implement it!

That is all for now,
Thank you!
Image
Learning C/C++
... Slowly,
...... Slowly,
.........Slowly.
User avatar
PizzaLover101
Member
Member
Posts: 1751
Joined: October 23rd, 2009, 1:33 pm
Name: NAME
IRC Username: DaItsicle
Location: By a computer
Contact:

Re: [Tutorial] Removing Edit Mode

Post by PizzaLover101 »

you have vista, cool!
Project 1: Da Chest Collector [TBD]
Project 2: Tis a secret [End of summer] announcement June 22 2011
Project 3: An even bigger secret!

http://pizzagametime.tk/
http://forums.pizzagametime.tk/
User avatar
Mike
Administrator
Administrator
Posts: 871
Joined: May 24th, 2009, 12:52 pm

Re: [Tutorial] Removing Edit Mode

Post by Mike »

Great tutorial, I really like how you included pictures! One note is that you can also just do it in default.cfg and then delete the .cfgs in the top level folder for the changes to take effect. To edit out the menu option just go into /data/lang/en menu.cfg and do a search for the text. Take care and thanks for writing this up!
-mike
Sign up for our Newsletter to keep up to date with the Sandbox news!
We also have a facebook page, facebook group, myspace page and a twitter page[/b][/color]!
AndyLangel
Member
Member
Posts: 55
Joined: May 25th, 2010, 12:15 am
Name: Andy

Re: [Tutorial] Removing Edit Mode

Post by AndyLangel »

Mike wrote:Great tutorial, I really like how you included pictures! One note is that you can also just do it in default.cfg and then delete the .cfgs in the top level folder for the changes to take effect. To edit out the menu option just go into /data/lang/en menu.cfg and do a search for the text. Take care and thanks for writing this up!
-mike
Ohh!, yea i forgot to mention the default.cfg- but didn't know where the menu options were- Thanks!, i think ill add that to my tutorial as well :)
Image
Learning C/C++
... Slowly,
...... Slowly,
.........Slowly.
User avatar
Cankinder
Member
Member
Posts: 189
Joined: May 28th, 2010, 1:50 pm
Name: Victor Manuel
IRC Username: Cankinder
Location: Spain, using my pc
Contact:

Re: [Tutorial] Removing Edit Mode

Post by Cankinder »

No is for nothing but if you do /edittoggle you come to the edit mode.
And, why you wanna delete the edit mode? If platinum not got edit mode, no is nothing!
PAS is to make and learn make but if u remove the only way of make, no is nothing.
Hello all:
-Victor The Cankinder
User avatar
Chaze007
Member
Member
Posts: 318
Joined: August 9th, 2009, 8:56 pm
Name: William
IRC Username: Chaze007
Location: MS

Re: [Tutorial] Removing Edit Mode

Post by Chaze007 »

Cankinder, the reasons for removing edit mode can be multiple.
Maybe the user wants to remove edit mode so the player can't cheat in the game he/she creates.
siimvuss
Member
Member
Posts: 410
Joined: August 19th, 2009, 1:27 am
Name: S
IRC Username: S
Location: Estonia

Re: [Tutorial] Removing Edit Mode

Post by siimvuss »

@AndyLangel
Good you made a tutorial about it and if you dont mind I´ll post it to sandbox tutorials page: http://sandboxgamemaker.com/wiki/index. ... rials_List
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: [Tutorial] Removing Edit Mode

Post by arcones »

He changed to a different engine so yeah, it's fine.
Image
Want a user bar like this one? PM Leo!
User avatar
Cankinder
Member
Member
Posts: 189
Joined: May 28th, 2010, 1:50 pm
Name: Victor Manuel
IRC Username: Cankinder
Location: Spain, using my pc
Contact:

Re: [Tutorial] Removing Edit Mode

Post by Cankinder »

Sorry people, i haven´t say any good thing =/
But how can you remove the /edittogle command?
-Victor The Cankinder
siimvuss
Member
Member
Posts: 410
Joined: August 19th, 2009, 1:27 am
Name: S
IRC Username: S
Location: Estonia

Re: [Tutorial] Removing Edit Mode

Post by siimvuss »

easiest way to prevent cheating would be to remove the access to command line at all, so maybe remove the hotkey for that?
Post Reply