Author Topic: First Colony Game!  (Read 21018 times)

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
First Colony Game!
« Reply #25 on: September 08, 2005, 01:48:46 PM »
Almost all source code files are simple text files. So you can use notepad to program just about anything. You'll still need a compiler to create the finished product, but that takes only seconds to generate from the source. Of course, writing the source can take a little longer without a compiler to check what you've written is syntactically valid. Or at least fixing it up later can. Anyways, there is a free C++ compiler package distributed by Microsoft. It should have everything you need except the editor to write the source file with (so use notepad and you're all set). Hacker should have a link to it if you can't find it searching.

Offline thablkpanda

  • Full Member
  • ***
  • Posts: 249
First Colony Game!
« Reply #26 on: September 18, 2005, 07:42:05 PM »
Or you could take my route, and wait till the mapper is sophisticated enough to code missions. Call me lazy, but eh.

Panda

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
First Colony Game!
« Reply #27 on: September 18, 2005, 08:19:32 PM »
You'll be waiting a long time for that one to happen... :P

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
First Colony Game!
« Reply #28 on: September 18, 2005, 08:33:31 PM »
Quote
Or you could take my route, and wait till the mapper is sophisticated enough to code missions. Call me lazy, but eh.

I don't want to wait that long  :lol:  

 
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline thablkpanda

  • Full Member
  • ***
  • Posts: 249
First Colony Game!
« Reply #29 on: September 20, 2005, 07:54:15 PM »
That's really uplifting hacker. When our mapper coder says 'a long time' .. can't be a little more enthusiastic about that one?

Lol.

Panda

Offline Goldo

  • Newbie
  • *
  • Posts: 5
First Colony Game!
« Reply #30 on: September 21, 2005, 05:42:06 PM »
well if it can have that functionality eventually - hell it would be worth the wait  B)  

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
First Colony Game!
« Reply #31 on: September 22, 2005, 02:07:05 PM »
Well, I prefer to state the facts rather than give out false hope.

Now with school started again, and plenty of other irons in the fire, I have a lot less time to work on the Mapper.
Also, I can't say that I necessarily like working on some of this stuff in the mapper. Some of it's really nasty and no fun to code at all.. It's also not the highest priority since the conventional way of making missions, that is by coding them in C++, works far better than any mapper script editor could make.

And the coding really isn't that hard for OP2. Download the SDK and find out!

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
First Colony Game!
« Reply #32 on: September 22, 2005, 05:13:33 PM »
well some of us don't want to use a hacked program  :P  
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
First Colony Game!
« Reply #33 on: September 22, 2005, 09:04:39 PM »
As has already been stated, you can download a free compiler from Microsoft that can compile missions. The SDK is not hacked/pirated. But you do need a C++ compiler to use it. So just download the free version and use any text editor you want to write your files.

Offline zigzagjoe

  • Hero Member
  • *****
  • Posts: 626
First Colony Game!
« Reply #34 on: September 23, 2005, 07:54:23 AM »
as i have stated before, spirit, try looking for vc5. that may work, and it can probly be adapted to the new(er) compiler if it doesnt work. vc5 is free, not hacked. vc6 is not hacked as well.
« Last Edit: September 23, 2005, 07:54:41 AM by zigzagjoe »

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
First Colony Game!
« Reply #35 on: September 23, 2005, 12:09:09 PM »
I downloaded a program that was hacked, linked from IRC. I must be getting name's messed up or something. I am going to look for vc5 I must of missed you telling me about it zigzagjoe.


spirit


edit: I found this program http://msdn.microsoft.com/visualc/vctoolkit2003/ Will this work?
« Last Edit: September 23, 2005, 12:12:12 PM by spirit1flyer »
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
First Colony Game!
« Reply #36 on: September 23, 2005, 02:29:14 PM »
Yes, that's what Hooman was referring to.

However you also need another thing: The Platform SDK. (You need its headers and libraries to compile any windows application)

Also, if you want an IDE / Editor: go to www.codeblocks.org.

I've been working on this and plan to have a set of files and instructions usable by next week.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
First Colony Game!
« Reply #37 on: September 23, 2005, 04:07:35 PM »
Quote

However you also need another thing: The Platform SDK. (You need its headers and libraries to compile any windows application

is this what I need?  
http://www.microsoft.com/downloads/details...&displaylang=en

Quote
I've been working on this and plan to have a set of files and instructions usable by next week.

Let me know when its done  :)

spirit
« Last Edit: September 23, 2005, 04:15:26 PM by spirit1flyer »
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline zigzagjoe

  • Hero Member
  • *****
  • Posts: 626
First Colony Game!
« Reply #38 on: September 23, 2005, 04:44:02 PM »
linked from irc doesnt mean hacked, lol. and yeah, that looks right
 

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
First Colony Game!
« Reply #39 on: September 23, 2005, 05:33:34 PM »
Quote
linked from irc doesnt mean hacked, lol.

the program I downloaded needed a registration code to use it and the wordpad with the code said it was hacked

Quote
and yeah, that looks right

thanks

spirit
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline zigzagjoe

  • Hero Member
  • *****
  • Posts: 626
First Colony Game!
« Reply #40 on: September 23, 2005, 05:37:56 PM »
where do you see that? my dl has just a code and thats it

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
First Colony Game!
« Reply #41 on: September 23, 2005, 05:41:43 PM »
I don't have the link right now I would have to look awhile. but next time I am on IRC I will give you the link


spirit
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline zigzagjoe

  • Hero Member
  • *****
  • Posts: 626
First Colony Game!
« Reply #42 on: September 24, 2005, 12:13:37 AM »
ok, i am tired of this. i am creating files so you can use the command line compiler, which is freely distributable. stay tuned.


todo:




nevermind......a few hrs of my time wasted  :'(  
« Last Edit: September 24, 2005, 08:36:41 PM by zigzagjoe »

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
First Colony Game!
« Reply #43 on: September 24, 2005, 07:08:30 PM »
I've put together a whole package with an IDE:

http://forum.outpostuniverse.net/index.php?showtopic=2038

Now you can get started with that coding! :)

Offline Chandler

  • Full Member
  • ***
  • Posts: 138
First Colony Game!
« Reply #44 on: July 15, 2006, 02:21:34 AM »
Can't remember the site, but you can get GCC, a legal, free C compiler (are we using C or C++ - don't know if it can do C++). Or just jump onto a Linux computer and use VIM. :o  
Chandler

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
First Colony Game!
« Reply #45 on: July 15, 2006, 09:52:29 PM »
we are using C++
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
First Colony Game!
« Reply #46 on: July 16, 2006, 04:36:45 PM »
GCC won't work for OP2 at all. The only supported compiler is a Microsoft compiler (this is not by choice. The people to blame are the OP2 developers for using MSVC5 in the beginning).

The reason for it is the way that microsoft compilers decorate exported class members. For example, TethysGame::CreateUnit(...) gets turned into ?CreateUnit@TethysGame@@SIHAAVUnit@@W4map_id@@ULOCATION@@H1H@Z by the compiler.

The problem with GCC / Mingw32 (or any other compiler -- except maybe Borland's, they might support it) is that they use different forms for decorated names. Because of that when the DLL is loaded, Windows wouldn't be able to find the correct names inside Outpost2.exe, thus the DLL won't run.

There's no real fix for this either, even if we were to do something, say, recompile GCC to support different name decoration, because Microsoft doesn't release details on their name decoration scheme. (You have to use their proprietary tools - their compiler cl.exe to 'decorate' names, and undname.exe to 'undecorate' names).

However, you can download their compiler for free, legally, from their website. (The wiki article explains this, and you can find it by searching for "Visual C++ Toolkit" on the microsoft website)

Offline PUNK_FOX

  • Jr. Member
  • **
  • Posts: 59
First Colony Game!
« Reply #47 on: July 19, 2006, 12:06:57 PM »
That sounds like a great mission, but how about this. :)

What about the opposite?

Your base is in the middle of the map and enemy Lynx's, Panthers, and Tigers
come at u from every corner and you start off with one Tiger Laser.

make the map alittle big.

oh, and the base is on top of a canyon and a couple of volcanoes surrounding u 2 help out.

how's this? :D  
Quote
Punk Staind Blood

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
First Colony Game!
« Reply #48 on: July 19, 2006, 11:15:15 PM »
well I am not that good of a mapper,  and I haven't done much with the mapper either.

But the coding,  I could do that.
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Stormy

  • Hero Member
  • *****
  • Posts: 678
    • http://www.op3game.net
First Colony Game!
« Reply #49 on: July 20, 2006, 12:54:49 AM »
Spirit you're back!!!!! Can you come on IRC?
`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·
3D artist in Blender, MS3D, and Terragen.
Trying to get good with Scene composition and lighting.