Making / distributing mods (a few questions)
Posted: 2016-05-28, 20:42
Hey, I've got a couple of questions for Carsten on topics I couldn't find a straight answer for in the documentation.
1. First of all, I noticed that when you open cafu.exe, it automatically loads up Deathmatch. How do you change what game the engine loads up when you open the executable? Is there a Lua script file somewhere that points it to the Deathmatch directory?
2. If I were to distribute a Cafu mod as a standalone game, would renaming cafu.exe to the name of my game pose any problems, or is the filename referenced by other programs and scripts?
3. I noticed that when I set the resolution to my native (1920x1080), it just scaled and stretched the main menu GUI. Is there a simple way to code a main menu GUI that scales in a more elegant way using only scripting? To give an example of such a solution in very loose pseudocode:
I think that's all my questions for now. Thanks in advance!
1. First of all, I noticed that when you open cafu.exe, it automatically loads up Deathmatch. How do you change what game the engine loads up when you open the executable? Is there a Lua script file somewhere that points it to the Deathmatch directory?
2. If I were to distribute a Cafu mod as a standalone game, would renaming cafu.exe to the name of my game pose any problems, or is the filename referenced by other programs and scripts?
3. I noticed that when I set the resolution to my native (1920x1080), it just scaled and stretched the main menu GUI. Is there a simple way to code a main menu GUI that scales in a more elegant way using only scripting? To give an example of such a solution in very loose pseudocode:
Code: Select all
if (aspect ratio = 16:9)
button1.graphic = NewGameStretched.png