Source code for v0.4.3?

This is the location for all mods to collaborate. Anyone making or planning their own mod should post help requests, screen shots and news here.

Moderators: Omega, tillias, Mod Contributor

Post Reply
Gullible Jones
Star Pilot
Star Pilot
Posts: 4
Joined: Fri Jun 05, 2015 10:02 pm

Source code for v0.4.3?

Post by Gullible Jones »

Hi all - not sure if this is the right place to ask, but I'm wondering how/if I can procure the sources for Vega Strike 0.4.3?

I'm thinking of starting an updated fork of this version, as I prefer its "old school" feel and lower resource consumption to what I've seen in more recent versions.

Thanks...
ezee
Intrepid Venturer
Intrepid Venturer
Posts: 703
Joined: Tue Feb 11, 2014 12:47 am
Location: FRANCE
Contact:

Re: Source code for v0.4.3?

Post by ezee »

Hello !
I've found that for you :
https://sourceforge.net/p/vegastrike/co ... ike_0_4_3/

Just checkout with the commit version 13682 .
Edit : don't believe that, see below
That should (not :lol: ) work .
:wink:
Last edited by ezee on Sat Jun 06, 2015 12:10 am, edited 1 time in total.

Code: Select all

 if (!track.HasWeapons())
            {
                // So what are you going to threaten me with? Exhaustion gas?
                return ThreatLevel::None;
            }
Vegastrike evolved
DEV YOUTUBE CHANNEL
Vegastrike evolved wiki
gonzo
Bounty Hunter
Bounty Hunter
Posts: 207
Joined: Wed Oct 20, 2010 3:50 pm
Location: Kungälv, Sweden
Contact:

Re: Source code for v0.4.3?

Post by gonzo »

Hello!

I'm going to be a bit more verbose... :wink:
Gullible Jones wrote:Hi all - not sure if this is the right place to ask, but I'm wondering how/if I can procure the sources for Vega Strike 0.4.3?
I've never done this in subversion before (I use git more) but I'm trying it out now. Basically you just check out the code as usual but add the specific revision for your version.
In your case r9266:
https://sourceforge.net/p/vegastrike/co ... ike_0_4_3/


So, modifying the instructions in the Wiki to check out the code:
http://wiki.vega-strike.org/HowTo:Checkout_SVN

...you end up with running the commands:

Code: Select all

svn co -r 9266 https://svn.code.sf.net/p/vegastrike/code/trunk/vegastrike

Code: Select all

svn co -r 9266 https://svn.code.sf.net/p/vegastrike/code/trunk/data
Or if you're on the latest revision you can try out this:
http://stackoverflow.com/questions/1429 ... mmand-lineI haven't tried this though...


Edit: changed revision number... I'm still not 100% sure on which is the correct one!
There are 10 types of people in this world, those who understand binary and those who don't.
gonzo
Bounty Hunter
Bounty Hunter
Posts: 207
Joined: Wed Oct 20, 2010 3:50 pm
Location: Kungälv, Sweden
Contact:

Re: Source code for v0.4.3?

Post by gonzo »

ezee wrote: Just checkout with the commit version 13682 .
I got a bit confused here. 13682 is the latest as of today. The correct revision would be the one I'm quoting above, no? :shock:
There are 10 types of people in this world, those who understand binary and those who don't.
ezee
Intrepid Venturer
Intrepid Venturer
Posts: 703
Joined: Tue Feb 11, 2014 12:47 am
Location: FRANCE
Contact:

Re: Source code for v0.4.3?

Post by ezee »

ah ah ah ... let me try so with TortoiseSvn .
Back in ten ... nine ..

you are right , my version is wrong ( HEAD ) .
:oops:
9266 is the good number here yeah , thx supa gonzo !
:wink:

Code: Select all

 if (!track.HasWeapons())
            {
                // So what are you going to threaten me with? Exhaustion gas?
                return ThreatLevel::None;
            }
Vegastrike evolved
DEV YOUTUBE CHANNEL
Vegastrike evolved wiki
Gullible Jones
Star Pilot
Star Pilot
Posts: 4
Joined: Fri Jun 05, 2015 10:02 pm

Re: Source code for v0.4.3?

Post by Gullible Jones »

Cool, thanks!

(Now I just have to figure out where the heck to store all this stuff... Gitlab won't do for the data, too many binary files!)
gonzo
Bounty Hunter
Bounty Hunter
Posts: 207
Joined: Wed Oct 20, 2010 3:50 pm
Location: Kungälv, Sweden
Contact:

Re: Source code for v0.4.3?

Post by gonzo »

Gullible Jones wrote:Gitlab won't do for the data, too many binary files!)
They have rules against it or they're not good at it?
There are 10 types of people in this world, those who understand binary and those who don't.
Gullible Jones
Star Pilot
Star Pilot
Posts: 4
Joined: Fri Jun 05, 2015 10:02 pm

Re: Source code for v0.4.3?

Post by Gullible Jones »

Err. Hmm. Maybe not. I had thought Git was no good with binary files, but it looks like it may be no worse than SVN.

In any case, this stuff is rather hard to compile. Lots of C++ syntax errors, missing header files for obscure OSes, stuff like that...

Edit: have to ask, what's the deal with the seemingly random occurrences of ClassName::Method (instead of just Method) inside header files?
gonzo
Bounty Hunter
Bounty Hunter
Posts: 207
Joined: Wed Oct 20, 2010 3:50 pm
Location: Kungälv, Sweden
Contact:

Re: Source code for v0.4.3?

Post by gonzo »

Gullible Jones wrote:Err. Hmm. Maybe not. I had thought Git was no good with binary files, but it looks like it may be no worse than SVN.
The reason I asked is I've heard other comments like that here so I got curious. I started a repository on GitHub with VegaStrike and binary content was no issure there.
In any case, this stuff is rather hard to compile. Lots of C++ syntax errors, missing header files for obscure OSes, stuff like that...
I had a no luck compiling it but the stuff is ten years old.

I didn't try VegaStrike until much later. What about 4.3 is it that you're after? Have you checked out any of the mods?
There are 10 types of people in this world, those who understand binary and those who don't.
ezee
Intrepid Venturer
Intrepid Venturer
Posts: 703
Joined: Tue Feb 11, 2014 12:47 am
Location: FRANCE
Contact:

Re: Source code for v0.4.3?

Post by ezee »

Edit: have to ask, what's the deal with the seemingly random occurrences of ClassName::Method (instead of just Method) inside header files?
Can you paste an exemple please ?

Code: Select all

 if (!track.HasWeapons())
            {
                // So what are you going to threaten me with? Exhaustion gas?
                return ThreatLevel::None;
            }
Vegastrike evolved
DEV YOUTUBE CHANNEL
Vegastrike evolved wiki
Gullible Jones
Star Pilot
Star Pilot
Posts: 4
Joined: Fri Jun 05, 2015 10:02 pm

Re: Source code for v0.4.3?

Post by Gullible Jones »

From what I recall playing it a while ago, it was friendlier to low-spec PCs, and had a more Wing-Commander-like feel. No beam weapons, for instance.

This is all kind of on a whim though to be honest. I figured I could sharpen my C++ skills on this; didn't realize it'd be so difficult to even get working.

Edit: @ezee - I managed to lose all my changes by accident, and will probably give up on 0.4.3 for now. (Wish the data files for these games were not so huge.) Here is an example though, from src/cmd/nebula_basic.h:

Code: Select all

class Nebula: public Unit {
protected:
        static void Nebula::beginElement (void * Userdata,const XML_Char * name, const XML_Char ** atts);
...
        void beginElem(const std::string&,const AttributeList&);
...
Having "Nebula::" there prevents it from compiling.

(Hmm. I think maybe someone did this for all static methods?)
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Re: Source code for v0.4.3?

Post by loki1950 »

Welcome aboard Gullible Jones you will have a real pain getting 0.4.3 to compile with any newer version of gcc or even VS Windows side lots of the constructs in the old code just will not work as C++ is a moving target :wink: BTW there are beam weapons in 0.4.3 just not available in the stating system the latest release works well on the second machine mentioned in my sig block better on Linux than Windows(less OS overhead)

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
ezee
Intrepid Venturer
Intrepid Venturer
Posts: 703
Joined: Tue Feb 11, 2014 12:47 am
Location: FRANCE
Contact:

Re: Source code for v0.4.3?

Post by ezee »

Very strange yeah ...
The code for version 0.5.1 is different :
class Nebula : public Unit
6 {
7 protected:
8 static void beginElement( void *Userdata, const XML_Char *name, const XML_Char **atts );
and this declaration has been mooved in nebula_generic.h :
http://vegastrikevo.sourceforge.net/veg ... ource.html

The version i'm working on is the 0.5.1 rc1 because it's the one that works good ( out of the box ) for windows . You could try it ( and help me to fix the source if needed ) at
vegaevo site : https://sourceforge.net/p/vegastrikevo/ ... _0_5_1_r1/

But i don't know in other os than windows wich files to checkout .
For windows , i checkout Data , win32 , vegastrike , vega-vc9

Perhaps "vegastrike" + "data" would be enough for you ?

Code: Select all

 if (!track.HasWeapons())
            {
                // So what are you going to threaten me with? Exhaustion gas?
                return ThreatLevel::None;
            }
Vegastrike evolved
DEV YOUTUBE CHANNEL
Vegastrike evolved wiki
gonzo
Bounty Hunter
Bounty Hunter
Posts: 207
Joined: Wed Oct 20, 2010 3:50 pm
Location: Kungälv, Sweden
Contact:

Re: Source code for v0.4.3?

Post by gonzo »

Gullible Jones wrote:From what I recall playing it a while ago, it was friendlier to low-spec PCs, and had a more Wing-Commander-like feel. No beam weapons, for instance.
Have you played around with the settings? If you run vssetup (./build/setup/vssetup ) you tweek the the shaders for a more low-spec feel.
There are 10 types of people in this world, those who understand binary and those who don't.
Post Reply