Multiline map comments

Make suggestions for improving one of the best games on the net!
Post Reply
User avatar
Zehra
Private First Class
Private First Class
Posts: 601
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Multiline map comments

Post by Zehra » Sun Mar 17, 2019 10:51 pm

While we do have shell style single line comments, multi-line comments would be very useful for map makers.
It would make several things much easier, especially when working with large scale maps and the temporary commenting out of objects is needed.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
macsforme
General
General
Posts: 2023
Joined: Wed Mar 01, 2006 5:43 am

Re: Multiline map comments

Post by macsforme » Mon Mar 18, 2019 1:33 am

And what is your proposed syntax for this feature?

User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 757
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Re: Multiline map comments

Post by allejo » Mon Mar 18, 2019 6:33 am

If you use an editor with syntax highlighting, you can highlight a block of text and use your editor's comment shortcut. Real haxors use keyboard shortcuts.
Here's my personal website and my open source projects are available on GitHub; I work on a lot of cool things.

Image

User avatar
Zehra
Private First Class
Private First Class
Posts: 601
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: Multiline map comments

Post by Zehra » Mon Mar 18, 2019 10:36 pm

macsforme wrote:
Mon Mar 18, 2019 1:33 am
And what is your proposed syntax for this feature?
C style comments.
allejo wrote:
Mon Mar 18, 2019 6:33 am
If you use an editor with syntax highlighting, you can highlight a block of text and use your editor's comment shortcut. Real haxors use keyboard shortcuts.
While it may be easy for us, I'm certain the majority of players have never used source code editors before.(Much less code.)

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
tainn
Private First Class
Private First Class
Posts: 158
Joined: Sun Nov 18, 2018 7:25 pm
Location: zone of the phantoms

Re: Multiline map comments

Post by tainn » Tue Mar 19, 2019 12:14 am

For what's worth, I do encounter cases where I have to (temporarily) remove a section of objects, though I simply use two separate text files to achieve that. Maybe multi-line comments might make that more elegant, though there are simple workarounds now already.

I would probably still use the two text files at the end of the day, since they also help out with other, potentially more frequent issues. One of them is find and replace, where I was to mass-change the values of some objects, but not all of them. Since my editor only allows file-wide changes, not selection-wide ones, I cut the part I want changed to the secondary file, modify it, and cut it back to the primary. This is an example of a frequent use.

User avatar
Zehra
Private First Class
Private First Class
Posts: 601
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: Multiline map comments

Post by Zehra » Tue Mar 19, 2019 7:21 pm

tainn wrote:
Tue Mar 19, 2019 12:14 am
For what's worth, I do encounter cases where I have to (temporarily) remove a section of objects, though I simply use two separate text files to achieve that. Maybe multi-line comments might make that more elegant, though there are simple workarounds now already.
For most other games, this is a general feature which does not even need to be mentioned as it is already expected.
Multi-line comments should be supported, as it would be the proper way to do things.
tainn wrote:
Tue Mar 19, 2019 12:14 am
I would probably still use the two text files at the end of the day, since they also help out with other, potentially more frequent issues.
In the end it comes down to personal preference, but all of us have found workarounds for the current lack of multi-line comments.
tainn wrote:
Tue Mar 19, 2019 12:14 am
One of them is find and replace, where I was to mass-change the values of some objects, but not all of them. Since my editor only allows file-wide changes, not selection-wide ones, I cut the part I want changed to the secondary file, modify it, and cut it back to the primary. This is an example of a frequent use.
It is reasonable to expect a source code editor or even a text editor to have 'find and replace', the same as it is reasonable to ask for the bzw syntax to support multi-line comments.
The part of the editor not supporting section-wide changes is related to the editor and not bzw syntax.
Secondary files for editing is something even I've done, and while it can be an example of frequent usage, it does not mean efficient usage.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
blast
General
General
Posts: 4732
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Multiline map comments

Post by blast » Wed Mar 20, 2019 1:14 am

Zehra wrote:
Tue Mar 19, 2019 7:21 pm
tainn wrote:
Tue Mar 19, 2019 12:14 am
For what's worth, I do encounter cases where I have to (temporarily) remove a section of objects, though I simply use two separate text files to achieve that. Maybe multi-line comments might make that more elegant, though there are simple workarounds now already.
For most other games, this is a general feature which does not even need to be mentioned as it is already expected.
Multi-line comments should be supported, as it would be the proper way to do things.
What other games have a plain-text map format and multi-line comments? We could see how they handle it. Looks like Quake 3 has a plain-text map format used by editors, but seems to only have single line comments.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
Zehra
Private First Class
Private First Class
Posts: 601
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: Multiline map comments

Post by Zehra » Thu Mar 21, 2019 12:14 am

blast wrote:
Wed Mar 20, 2019 1:14 am
What other games have a plain-text map format and multi-line comments? We could see how they handle it. Looks like Quake 3 has a plain-text map format used by editors, but seems to only have single line comments.
My bad, I was mistaken on the subject.
My thoughts were that it may be a widespread feature [within games that support map file comments], but this does not appear to be the case.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests