[Gtkradiant] Proposed change on game file creation

Martin Gerhardy martin.gerhardy at gmail.com
Mon Mar 24 08:33:10 CDT 2008


Hi,

i would like to change the CGameInstall::Run function like it is shown
in the attached patch (which also includes the ufoai gamepack for
demonstration).

The structure i would suggest is the following:
zeroradiant_root/
|-- bitmaps
|-- games
|   `-- ufoai
|       |-- game.xlink
|       `-- synapse.config
|   `-- warsow
|       |-- game.xlink
|       `-- synapse.config
|   `-- quake3
|       |-- game.xlink
|       `-- synapse.config
|   `-- [...]
|       |-- game.xlink
|       `-- synapse.config
|-- installs
|   `-- UFOAIPack
|       `-- base
|           |-- scripts
|           |   |-- common.shader
|           |   |-- default_project.proj
|           |   |-- entities.def
|           |   |-- shaderlist.txt
|           |   `-- textures.shader
|           `-- textures
|               `-- radiant
|                   `-- notex.tga
|-- modules
|-- radiant.bin

The data below games/ will be kept in the radiant tree, the data below
installs/ will be copied to the engine path.

The current approach with handling the synapse.config and game.xlink is
only good for handling one game. But if we add support for other games
or add more gamepacks it would imo make sense to add support for more
than one activate game or project, too.

Also i would imagine, that it's not very intuitive for new users to
create the new game settings. I mean, we know what the engine path is,
what the name is for and so on - but i think a new user won't get the
difference between the name from the selectbox and the name we prompt
for. Maybe there would be some default values that depends on the
selected game in the selectlist (i just found no gtk 1.x function to set
a handler for this widget type - any hints are welcome).

Greetings
Martin


-------------- next part --------------
A non-text attachment was scrubbed...
Name: games_folder.diff
Type: text/x-patch
Size: 16131 bytes
Desc: not available
Url : http://zerowing.idsoftware.com/pipermail/gtkradiant/attachments/20080324/955508b4/attachment.bin 


More information about the Gtkradiant mailing list