Game Development Community

One more stupid quesion...

by Awakened · in Torque 3D Beginner · 10/07/2013 (1:29 am) · 8 replies

It is possible to download binary and source, but I don`t understand the difference. For me source has the same files as a binary...
Would you possibly be so kind to explain me the difference.

#1
10/07/2013 (4:20 am)
Source is the source files for compiling the binary (Visual studio projects, .h files, .cpp files etc) You can use the source to build the .exe
The binary download contains precompiled binaries so you don't have to compile it yourself.
#2
10/07/2013 (4:51 am)
Thank you for your reply!
Hm, so if I want to change something in engine I have to change source, compile it and only after that I can use it, right?

Could it be the reason that "ScatterSky Z-Offset Hack" doesn`t work for me? I`ve changed binary:
http://www.garagegames.com/community/resources/view/20788/2#comment-194156
#3
10/07/2013 (5:08 am)
Yes, once you've made the changes to the C++ source files, you have to recompile the engine to make new .exe files.
#4
10/07/2013 (6:18 am)
One more time.
In case of "ScatterSky Z-Offset Hack" scatterSky.cpp and scatterSky.h need to be changed.
So I need find these files in source, make changes, compile them, add to my proper project folder and only than it will work. Right?
#5
10/07/2013 (6:31 am)
Whoa, whoa - you compile the executable and it will automatically be in your project folder. Don't go copying stuff around.... You shouldn't have to add any files UNLESS IT SPECIFICALLY STATES IT IN THE INSTRUCTIONS FOR THE MODIFICATION YOU ARE MAKING.

I recommend getting an introductory book on programming in C++....
#6
10/07/2013 (7:03 am)
I get lost. :(

In which cases I need source?
Executable has ".exe" and ".bat" extensions as far as I know. For example I need change ".cpp" or ".h", what I use for it: binary or source?

P.S. You recommend me to read a book on programming in C++. No doubt it will be an asset for me, but another people have already recommended to me to start with level design. And it seams to me more logical to move from simple to complex. I just need to fix scattersky (and another things)...
#7
10/07/2013 (8:01 am)
Fixing scattersky is not "simple" unless you are familiar with programming. Something you are directly illustrating.

"You simply modify the requisite source files as directed, recompile and then you're good." You've already expressed that this is Greek to you, so it's obviously not simple - you lack the necessary background knowledge for this to be "simple." I suggest you aquire the requisite background knowledge - all you need is the first few chapters of ANY beginning C++ programming book, you don't have to be fluent in C++ or a senior systems engineer with 20 years of experience. You just need to get an introductory book and spend a day or two learning the basics.

So. If you have the source you modify it AS DIRECTED. You recompile. You should find that your executable has been updated. If there are any issues at all (typo, forgot to change a file, changed a different file by mistake) you are going to be hosed and you'll spend more time trying to get us to help you fix it than it would have taken to read a good intro book on programming and learn what you need to know to begin with. Browse the forums for a day, look at the posts going back 15 years and you'll see this cycle repeated many, many times.

I'm trying to save you (and the rest of us) the headache....
#8
10/07/2013 (10:17 am)
Thank you all for your answers, advises and time you`ve spent to help me.