cortex-command-community / Cortex-Command-Community-Project-Source

[ARCHIVED] Cortex Command - Open Source under GNU AGPL v3 (no game data included)
https://cortex-command-community.github.io/
GNU Affero General Public License v3.0
200 stars 41 forks source link

Scene editor: Option to add to the terrains list #140

Open orengg opened 4 years ago

orengg commented 4 years ago

Is your feature request related to a problem? Please describe. When creating a new scene the user is given a list of available terrains. It isn't clear how to add terrains to this list other than defining them in an existing scene through a manual edit in the scene ini.

Describe the solution you'd like Scene editor will give a list of available terrains which is composed of all terrains found in the terrains folder.

Describe alternatives you've considered Any other solution that lets the user choose a terrain, which has not been used previously in an existing scene, for a new scene.

MaximDude commented 4 years ago

I don't quite understand the issue. Obviously you can't add an non-existing terrain into the game while it's running, if that's what you're trying to do. The editor relies on existing presets like anything else.

If it's not that, then I don't know, but I have a suspicion that it can be solved by defining all terrains in a standalone ini, as of now each terrain is defined under a scene and that might be the issue you're dealing with here.

orengg commented 4 years ago

Right. What I mean is I want to use an existing terrain bmp in a new scene that I am creating while in game. However the terrain bmp has not been defined in any existing scene. An ini with a list of all terrains would be a possible solution. My suggested solution is that the game would scan the terrains folder on game startup, so adding a terrain would be a matter of copy-paste, without file edits.

MaximDude commented 4 years ago

Ok I see now, you want to use a terrain that wasn't given a preset because I was a lazy ass and just dumped some bmps in. Basically this is a non-issue because of a misconception about the scene editor.

The scene editor is what it says on the box, an editor. It relies on existing presets and allows you to "create" (not really) a new scene by copypasta existing presets together. I believe the main objective behind it was to allow easy placing of objects for already existing "empty" scenes and that's really what it does best, scene "creation" was probably added in later and is pretty half assed.

I agree that scanning the terrains folder at startup and being able to create a preset just from a bitmap will add more functionality to the scene editor, essentially making it the "scene creator" people think it is.

I'd say you should edit this issue into a feature request for this, it's a good idea.