Game Development Community

Missing "preferences.cs" file.

by Dawid Zwiewka · in Torque 2D Beginner · 03/13/2013 (10:08 am) · 6 replies

Hi. I just started using T2D MIT and right after compiling I read here: https://github.com/GarageGames/Torque2D/wiki/Getting-started-guide that I should copy following files:

cleandso.bat
main.cs
OpenAL32.dll
preferences.cs
unicows.dll
Torque2D.exe

The problem is that there is no preferences.cs file. What should I do? Create empty file called preferences.cs?

About the author

I'm not from UK/USA so I'm sorry in advance for all grammatical mistakes :)


#1
03/13/2013 (10:48 am)
It will generate itself when the executable exits.
#2
03/13/2013 (11:02 am)
It didn't generate :)
#3
03/13/2013 (11:13 am)
The "preferences.cs" file is obviously your preferences so if you don't have any then it doesn't matter and it'll use defaults so just ignore that file and everything will be okay.

I'll look at getting that mentioned in that document to save future confusion.

Technically the executable doesn't write it when it exits, the Sandbox scripts write it so it'll only write it if you run the Sandbox scripts in the repo therefore the guide is incorrect.

You can see this file being saved here from the Sandbox.

#4
03/15/2013 (2:02 pm)
Another problem. I am not sure if I did something wrong or it's mistake in tutorial:
"In /myModule/main.cs, after the first few lines starting with exec(...);, add the following code" - the end of chapter 6

But my main.cs doesn't have any exec(...) yet. It looks like this (copied from the end of chapter 4):
function MyModule::create( %this )
{

}

function MyModule::destroy( %this )
{

}
Did I make something wrong? Should I add exec(...) at the beginning of my main.cs or in create function (like in chapter 7) ?
#5
03/16/2013 (5:10 am)
@Dawid : Add this in the MyModule::create function
exec("./gui/guiProfiles.cs");

The guide referred to an earlier version, hence the problem. You will be adding other exec() lines later on. :)

Also, the preferences.cs file will be removed from the guide as it is not used!

Thank you for your patience!
#6
03/16/2013 (5:33 pm)
It's not patience :) I just want to do everything correctly because when you jump to next chapter without learning all current chapter you can have trouble in future. Not only with this guide - with everything. I know I could solve the missing line or wrong word by myself but I hope that writing it on forum will help other newbies like me :)