i've decided to learn how to compile the source
since i dont have admin access i can't install visual c++ so i went for mingw
have installed it ok i think but when i input the suggested
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Obviously you have to go and fix your search paths. Have a look at the mingw wiki. It's quite verbose on the installation, especially also on the required search paths.
now how to add a patch to the build?
the stickied topic doesnt really explain much...
(yes ok i haven't read all of it but can someone point me to the right place)
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
The patch files go in the same place as the configure folder - eg, one level up from the src folder. If you checked out to C:\Ottdsrc and the src folder is C:\Ottdsrc\src, then they go in Ottdsrc
You apply all patches BEFORE ./configure and make - this is because some patches, such as CargoDist, add to source.list, and that has to be parsed so it knows what files to use to compile. It contains rules that add in or remove some OS specific files - no use compiling Unix.cpp if you're making a Windows build.
um, ok, next problem
1. my folders go: ottdsrc\trunk\src
put the patch in trunk or src?
(i think its trunk but i'll check anyway)
wiki is suprisingly non existent on these matters
2. is there a way to download an older source from svn via mingw?
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Well, if you have a clean copy of trunk, and you have a patch for an older version of trunk, then you want to update to an older revision. I guess it should be downgrade, but who cares?
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Each time you run 'make' it will generate a new binary, and replace the old one.
Which is sometimes not always good, such as when you add a patch that bumps savegame, and makes your old game unloadable.
But yes, sometimes svn update to an older revision does come in handy. I check out trunk for my pack, and then realise I needed a different revision, so 'update' it to the older revision the CargoDist patch is against.
its ok that it may bump save game, i'd probably never use the version full time (i'm happy with stable, 32bpp and nightly ) so i'd just use it for testing that the patch worked
also, is it ok to upload (to the forums) a binary with just opengfx and opensfx so it works without original files?
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
I think it is, provided you keep the liscense files that come with them, as per GPL.
Edit: Yes, petert is right there too, but not everyone wants to use them. Also what about people who don't have the game yet, for some reason?
On a related topic, if you ever want to distribute a compiled binary you've made, after you've run make, run 'make bundle_zip' and it'll create the folder trunk/bundles and leave in there a freshly baked zip, just like the ones you'd download from the OpenTTD Website. I *think* if you put OpenG/SFX in the data folder where the binary is made (trunk/bin/data) they'll be included in the zip, but that'll give a significant increase in size to the zipped bundle.