publish game

There are no stupid questions, just stupid answers.
7 posts Page 1 of 1
subabrain
Posts: 190
Joined: Sat Aug 20, 2016 4:58 pm
 
by subabrain » Tue Apr 10, 2018 8:18 am
Good Morning :)

okay now a better explained question than the last one :P

i want to publish my game for others - can i encrypt the sourcecode?
or better how can i make the game working on other computers with other graphics.

the problem is i tried the game as it is on another computer but the fps are very slow but its a better performance computer - sot it has to normally be faster :/

it would be nice if you could help :)

thanks and greets!
Robert
Duion
Posts: 1064
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Tue Apr 10, 2018 1:41 pm
You can compile the scripts with the "CompileAll" flag, look in your main.cs in the game root folder there is a line called "if($compileAll)" etc then it will compile all the scripts. All the flags you can use are listed in the parseArgs.cs file.

So you launch the executable with the argument like "mygame.exe -compileAll" then it will compile the scripts I think.

Regarding peformance, you need to optimise the performance and test if it runs on older PCs, especially find good default settings in the graphics options, so people do not have to manually reduce the graphics quality for it to run on their computer.

Additionally you can also pack all the assets into a zip like format, but I don't know how that works.
subabrain
Posts: 190
Joined: Sat Aug 20, 2016 4:58 pm
 
by subabrain » Thu Apr 12, 2018 8:16 am
Thanks a lot for your answer!

one question i have:

is it encrypted - so nobody can simply change the scripts etc?

ok would be nice if youcould answer :)

greets
Robert
LukasPJ
Site Admin
Posts: 388
Joined: Tue Feb 03, 2015 7:25 pm
 
by LukasPJ » Thu Apr 12, 2018 10:22 am
Thanks a lot for your answer!

one question i have:

is it encrypted - so nobody can simply change the scripts etc?

ok would be nice if youcould answer :)

greets
Robert
Steve_Yorkshire
Posts: 284
Joined: Tue Feb 03, 2015 10:30 pm
 
by Steve_Yorkshire » Mon Apr 16, 2018 10:34 pm
Compiled to dso and then removed the cs files. NOTE: your main.cs in the game directory still needs to be a cs file (unless someone changed that recently) or your game won't load.
Phantom139
Posts: 7
Joined: Tue Feb 10, 2015 12:23 am
 
by Phantom139 » Wed Apr 18, 2018 1:00 am
NOTE: your main.cs in the game directory still needs to be a cs file (unless someone changed that recently) or your game won't load.
I've always wondered why this wasn't moved into source code, most of the things in there are just basic function definitions with a few "flag" parameters that could do better in a general header file.

Having main.cs present leaves room for executing "undesired" code in games, but alas, that's just the security part of me speaking.

The rest of your code can be safely "compiled" as Duion has stated, assets will be present in the art folder, but those can also be compiled and shipped in that form. Most of your work will be on the optimization front at the end.
subabrain
Posts: 190
Joined: Sat Aug 20, 2016 4:58 pm
 
by subabrain » Wed Apr 18, 2018 1:02 pm
Hello together,

ok - is see - thank you very much - the thing is of course it could be moved but i dont try to ask stupid questions ;)

So thanks!

Greetings
Robert

PS: Sorry for penetrating you but i have opened one last thread because i dont find a way to publish in the browser - THX!
7 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 12 guests