Easy CFG Editor (for maps)

Learn more on how to use Sandbox, or submit your own tutorials or resources.
User avatar
Obsidian
Former Staff
Posts: 454
Joined: May 24th, 2009, 1:52 pm
IRC Username: Katana
Contact:

Re: CFG Easy Text Editor (for maps)

Postby Obsidian » April 6th, 2010, 8:14 pm

Yep, that definitely works. Just be sure to have the "Decline" button present, and if it is clicked it should immediately shut down the program and not make any file-writes/changes/further dialog boxes/etc.
うるさいうるさいうるさい!

github: https://github.com/damianb/

User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: CFG Easy Text Editor (for maps)

Postby Leo_V117 » April 6th, 2010, 10:22 pm

One problem i noticed that i find annoying. I prefer to separate all my code functions with tabs, not spaces. Secondly, the function "cleargui" is unknown, set it as known as its important for menus for maps or not. and as for quotes at either side of the guibutton, Its preferred that they are enclosed in [] brackets.

Like this:

Code: Select all

level_trigger_12 = [showgui curiosity]

newgui curiosity [
   guitext "Oh, What next in the parade of constant interuptions?"
   guibutton "Continue..."          [cleargui]
]

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: CFG Easy Text Editor (for maps)

Postby Hirato » April 7th, 2010, 2:37 am

Code: Select all

guibutton "Action" cleargui
guibutton "Action" "cleargui"
guibutton "Action" [cleargui]


those are functionally the same

in the examples below, the first line functions very differently to the other two (the 1 is interpreted as an icon)

Code: Select all

guibutton "Action" cleargui 1
guibutton "Action" "cleargui 1"
guibutton "Action" [cleargui 1]


it's worth getting familiar with the engine's parser if you're going to do something like this
This is not a url, clicking it is pointless

User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: CFG Easy Text Editor (for maps)

Postby Leo_V117 » April 7th, 2010, 7:58 am

So whats the "Close" icons number?

Venima, Take note of these.

As I prefer to keep them in [] brackets, it seemsto be loads neater and less likely to go messed up, you may be the best person to answer this hirato, But, Where do I find the config files for the main menu and Am I allowed to clear it and re-build the engines folders as long as I connect the files together? I need a better menu for R17 and i may create a tool that helps people to create their own menus.

User avatar
Venima
Support Team
Support Team
Posts: 259
Joined: February 17th, 2010, 4:56 am
Name: Tombstone
IRC Username: Venima
Location: Somewhere in the eternal planes between the living and the dead

Re: CFG Easy Text Editor (for maps)

Postby Venima » April 7th, 2010, 3:38 pm

Hirato wrote:in the examples below, the first line functions very differently to the other two (the 1 is interpreted as an icon)

Code: Select all

guibutton "Action" cleargui 1
guibutton "Action" "cleargui 1"
guibutton "Action" [cleargui 1]


and what does this icon you mentioned do?

Yeah, I'm slowly learning the language myself as I'm making this program. It'll go through some major turns when I learn new things. Version 1.0.5 will have some real major changes (to every single command), although 1.0.4 is already quite a lot more advanced than 1.0.3, absolutely loads of bugs fixed, which is why it's taken so long without a release.
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament

Try out my: CFG Easy Text Editor (Note: still in beta)

-----Venima
Image
Image

User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: CFG Easy Text Editor (for maps)

Postby Leo_V117 » April 7th, 2010, 4:27 pm

I dunno, i just found out about it.

User avatar
Venima
Support Team
Support Team
Posts: 259
Joined: February 17th, 2010, 4:56 am
Name: Tombstone
IRC Username: Venima
Location: Somewhere in the eternal planes between the living and the dead

Re: CFG Easy Text Editor (for maps)

Postby Venima » April 8th, 2010, 6:50 am

Version 1.0.4 is now released!

I have noted your requests, and my program will be able to handle everything the game can handle, wait for 1.0.5 cos I'm making massive changes to my code.
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament

Try out my: CFG Easy Text Editor (Note: still in beta)

-----Venima
Image
Image

User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: CFG Easy Text Editor (for maps)

Postby Leo_V117 » April 8th, 2010, 11:03 am

Dude, Youre Crazy man.... Nice work. Youre hired for Project: Regen

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: CFG Easy Text Editor (for maps)

Postby Hirato » April 9th, 2010, 2:30 am

just to list a few more quirks of the engine

Code: Select all

newgui test [
    guitext "This is some text
    guitext "This is some more text"
]


the result of that would be two guitext items, the first reading "This is some text", the second of course "This is some more text"

""'s also have some additional things they can interprety
for example

Code: Select all

newgui test [
    guitext "^fs^f3I'm in red!^fr^nand I'm on a new line!"
    guistrut 1
    guitext "I'm indented indented"
    guitext "^"and I'm quoted^""
]


that should sufficiently demonstrate the different text parameters
it's worth mentioning they don't work on their own, inside (), inside [] or inside {} even - they must be inside ""
This is not a url, clicking it is pointless

User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: CFG Easy Text Editor (for maps)

Postby Leo_V117 » April 9th, 2010, 7:04 am

Aww... That sucks. Oh well, Back to the drawing board


Return to “Tutorials and Resources”

Who is online

Users browsing this forum: No registered users and 1 guest