OpenXcom


  • Please log in to reply
57 replies to this topic

#1 michal

michal

    Squaddie

  • Members
  • Pip
  • 44 posts

Posted 14 May 2010 - 04:56 AM

A new X-COM project went public!

Goal of this project is to recreate the original game from scratch, 100% faithful to original game (minus bugs of course :cool: ). But code base will allow anyone to make tweaks, changes etc. Author will try to make this game as as moddable as possible.

It is still in early development, but there are already screens to show:

13052010_geoscape.png 13052010_ubuntu.png


More screen shots, information and svn builds (for windows and linux) can be found on OpenXcom's official site!

#2 Bomb Bloke

Bomb Bloke

    The Smily Admin

  • Admin
  • PipPipPipPipPip
  • 4,625 posts
  • Gender:Male
  • Location:Tasmania (AU)

Posted 14 May 2010 - 04:00 PM

I have to say it...

"What, another one?!"  :cool:

Good to see an open source one, though - that's uncommon. The SVN suggests it's been in development for at least three and a half months by a guy called "supsuper".

Couldn't find any installation instructions, so for what it's worth, you're supposed to copy the contents of your game folder into OpenXcom's "Data" folder. It wants a copy of the CE game, doesn't work with just the DOS files.

Thus far it's no where near "playable", but he's got the Geoscape drawing the globe - I always fancied that would be the hardest part, for some reason I've never been able to wrap my head around coding even a pseudo-3D engine.  :(
BB's X-Com Projects Page - X-Com Games At GamersGate
You're just jealous 'cause the voices only talk to me :P
We love Tammy! :)

#3 hatfarm

hatfarm

    Lieutenant

  • Members
  • PipPipPipPip
  • 172 posts
  • Gender:Male
  • Location:Normal, IL, USA

Posted 14 May 2010 - 07:10 PM

There is almost no commenting in the code, which is going to make it really hard for people to help out.  I'd actually love to help with it, but I think my Summer time would be gone before I really understood what was being done.

#4 Azrael Strife

Azrael Strife

    Captain

  • Site Staff
  • PipPipPipPipPip
  • 1,522 posts
  • Gender:Male
  • Location:Montevideo, Uruguay.

Posted 15 May 2010 - 10:08 PM

Haha, SupSuper is one of the guys from Project Xenocide and XCOMUFO :cool:
Posted Image

#5 SupSuper

SupSuper

    Squaddie

  • Members
  • Pip
  • 14 posts

Posted 17 May 2010 - 12:03 AM

View PostBomb Bloke, on 14th May 2010, 5:00pm, said:

I have to say it...

"What, another one?!"  :(

Good to see an open source one, though - that's uncommon. The SVN suggests it's been in development for at least three and a half months by a guy called "supsuper".

Couldn't find any installation instructions, so for what it's worth, you're supposed to copy the contents of your game folder into OpenXcom's "Data" folder. It wants a copy of the CE game, doesn't work with just the DOS files.

Thus far it's no where near "playable", but he's got the Geoscape drawing the globe - I always fancied that would be the hardest part, for some reason I've never been able to wrap my head around coding even a pseudo-3D engine.  :(
The instructions should be in the Downloads page if you missed them. :cool:

Glad you got it working though. The globe is indeed one of the trickiest parts, and is still far from complete. It requires a lot of crazy trigonometrical knowledge, which is not my strong point.


The game should run fine with any X-Com version now (the main issue is the audio which changes between versions, so for now you just won't get music with the DOS version) though, and about the only playable thing in the game now is the timer with monthly funding. Enjoy the excitement of watching your funds grow without interaction!  :(

View Posthatfarm, on 14th May 2010, 8:10pm, said:

There is almost no commenting in the code, which is going to make it really hard for people to help out.  I'd actually love to help with it, but I think my Summer time would be gone before I really understood what was being done.

I am looking into getting the code documented. However, I should clarify that this isn't some call for help for everyone to come form another big team (there's plenty of other projects for that), just a call for attention. :(



View PostAzrael Strife, on 15th May 2010, 11:08pm, said:

Haha, SupSuper is one of the guys from Project Xenocide and XCOMUFO :)
Oh no, you got me!  :(

#6 michal

michal

    Squaddie

  • Members
  • Pip
  • 44 posts

Posted 21 May 2010 - 04:57 PM

View Posthatfarm, on 14th May 2010, 7:10pm, said:

There is almost no commenting in the code, which is going to make it really hard for people to help out.  I'd actually love to help with it, but I think my Summer time would be gone before I really understood what was being done.

Check this out:
http://openxcom.nine.../docs-and-macs/

#7 hatfarm

hatfarm

    Lieutenant

  • Members
  • PipPipPipPip
  • 172 posts
  • Gender:Male
  • Location:Normal, IL, USA

Posted 21 May 2010 - 06:22 PM

View Postmichal, on 21st May 2010, 5:57pm, said:

Sounds good.  I'll check that out.  I had no problems with the quality of the code (my code quality is pretty deplorable if you've looked at it), it's just nigh impossible to help with coding something if you have no idea what is being done.  Before I made XCOMHACK open sourced, I had to go back and comment everything (and I haven't really done a great job) and it was a big hassle.  However, it has helped even me know what I'm doing with my code because after a project gets so big and you're working on something else for so long, going back and looking at something you worked on two weeks ago can be troublesome if it's complex.  

I hope I didn't come off as a jerk, as I wasn't intending to be a jerk.  It's just difficult to look at someone else' code and make something out of it (at least for me) without any comments telling you what stuff does, or is supposed to do.  It's entirely up to you how you want to run your development, I was honest when I said I'd love to help as this to me seems like the kind of project I'd like to see, just a remake that allows the user to play the original game, but without the hassles involved in getting the old executables to run on newer operating systems.  I hope you do finish this as it is something I'm looking forward to using.

#8 Bomb Bloke

Bomb Bloke

    The Smily Admin

  • Admin
  • PipPipPipPipPip
  • 4,625 posts
  • Gender:Male
  • Location:Tasmania (AU)

Posted 22 May 2010 - 06:27 AM

Ironic that the inclination to comment dwindles as the need for comments rises.

This is probably because it feels weird writing comments that are longer then the actual coding. For example, you can stick several conditional statements in a single line, but good luck explaining them all in a single line...

(Half the time, I feel nothing short of illustrated diagrams would do the job. Sometimes, fully animated video...)

So often I don't bother, and just hope my function/variable names make enough sense to convey their purposes.  :cool:
BB's X-Com Projects Page - X-Com Games At GamersGate
You're just jealous 'cause the voices only talk to me :P
We love Tammy! :)

#9 Gimli

Gimli

    Dances with Mutons

  • Retired Staff
  • PipPipPipPipPip
  • 1,036 posts
  • Gender:Male
  • Location:Croatia

Posted 22 May 2010 - 03:28 PM

I always make sure I use names that convey the purpose well. It's a lot of help. Thankfully, VS has the ability to turn your comments into tooltips (if you write them the way it can read them) which helps when you're about to use a method but don't know or don't remember what to expect from parameters or return values.
That being said, I forgot to comment the latest bit of code I wrote. :cool:

#10 SupSuper

SupSuper

    Squaddie

  • Members
  • Pip
  • 14 posts

Posted 23 May 2010 - 10:53 PM

View Posthatfarm, on 21st May 2010, 7:22pm, said:

Sounds good.  I'll check that out.  I had no problems with the quality of the code (my code quality is pretty deplorable if you've looked at it), it's just nigh impossible to help with coding something if you have no idea what is being done.  Before I made XCOMHACK open sourced, I had to go back and comment everything (and I haven't really done a great job) and it was a big hassle.  However, it has helped even me know what I'm doing with my code because after a project gets so big and you're working on something else for so long, going back and looking at something you worked on two weeks ago can be troublesome if it's complex.  

I hope I didn't come off as a jerk, as I wasn't intending to be a jerk.  It's just difficult to look at someone else' code and make something out of it (at least for me) without any comments telling you what stuff does, or is supposed to do.  It's entirely up to you how you want to run your development, I was honest when I said I'd love to help as this to me seems like the kind of project I'd like to see, just a remake that allows the user to play the original game, but without the hassles involved in getting the old executables to run on newer operating systems.  I hope you do finish this as it is something I'm looking forward to using.
No offense taken, it's just funny seeing such first reactions to another X-Com remake: "Looks great but damn that code is nasty, I'm not playing a game with such horrible variable names, I might get AIDS!". :( I guess deep inside we're all big programming nerds.    

Plus documentation is a funny thing. You might have a few huge pieces of code with lots of algorithms that practically need a comment per line and maybe an attached video, but mostly it's stuff like this:
  /**
   * Returns the soldier's amount of stamina.
   * @return Stamina.
   */
  int Soldier::getStamina()
  {
	  return _stamina;
  }
I hope that's clear enough. :cool:

#11 Guest_bramcor_*

Guest_bramcor_*
  • Guests

Posted 18 October 2010 - 10:21 PM

The first properly versioned, properly planned, properly built milestone for OpenXcom has been reached with v0.1! It contains tons more bugfixes and features than before! Come have a look at http://openxcom.ninex.info

These are the features you'll find in this version:

Geoscape:
Fully-controllable globe
Globe details like country borders and names
Day/night effect
Initial base placement
Basic UFO spawning and detection
Craft interception with fuel consumption and basic dogfights
Craft repairing/refuelling/rearming
Funding overview
Monthly funding
Scroll-wheel support

Basescape:
Full base view with facilities
Building new bases with access lift placement
Base information
Base stores
Soldier stats (with randomly generated soldiers)
Craft info and equipping
Facility building/removal
Scroll-wheel support

#12 michal

michal

    Squaddie

  • Members
  • Pip
  • 44 posts

Posted 18 December 2010 - 06:49 AM

Hello,
        
        Here's video of battlescape from current svn version:
        
    

#13 Azrael Strife

Azrael Strife

    Captain

  • Site Staff
  • PipPipPipPipPip
  • 1,522 posts
  • Gender:Male
  • Location:Montevideo, Uruguay.

Posted 18 December 2010 - 01:05 PM

Impressive, you've gone farther than any other project out there, congrats.
Posted Image

#14 hatfarm

hatfarm

    Lieutenant

  • Members
  • PipPipPipPip
  • 172 posts
  • Gender:Male
  • Location:Normal, IL, USA

Posted 18 December 2010 - 04:03 PM

Amazing progress!  Keep up the good work!

#15 TomVD

TomVD

    aka Daiky

  • Members
  • Pip
  • 10 posts

Posted 25 December 2010 - 06:24 PM

Christmas is all about creating light and atmosphere in a cold, dark period of the year.
So I thought it was a good time to implement lighting in OpenXcom, and make a creepy demo movie of it:



#16 Space Voyager

Space Voyager

    I've got my eye on you!

  • Site Staff
  • PipPipPipPipPipPip
  • 5,394 posts
  • Gender:Male
  • Location:Slovenia

Posted 25 December 2010 - 07:56 PM

Really cool! I like the unlimited TU, too. :P

#17 Bomb Bloke

Bomb Bloke

    The Smily Admin

  • Admin
  • PipPipPipPipPip
  • 4,625 posts
  • Gender:Male
  • Location:Tasmania (AU)

Posted 26 December 2010 - 12:56 AM

Not too shabby, though note that discovered doors shouldn't be shaded any darker then light level 3 on-screen, regardless of how dark it's supposed to be; not entirely sure why, though it's possibly to make it look a little less weird when troopers pathfind through doors you yourself couldn't see.
BB's X-Com Projects Page - X-Com Games At GamersGate
You're just jealous 'cause the voices only talk to me :P
We love Tammy! :)

#18 TomVD

TomVD

    aka Daiky

  • Members
  • Pip
  • 10 posts

Posted 26 December 2010 - 08:32 AM

View PostBomb Bloke, on 26th December 2010, 1:56am, said:

Not too shabby, though note that discovered doors shouldn't be shaded any darker then light level 3 on-screen, regardless of how dark it's supposed to be; not entirely sure why, though it's possibly to make it look a little less weird when troopers pathfind through doors you yourself couldn't see.
It's on my list. You will notice that if you enter a building (without windows) the complete east and south wall stays black (because your soldier can not really see the outside of it). But it would be very hard to find the door in a east or south wall, if it was all black :P
So an -in theory- not seen door, will show up in that case also, but only if one of the tiles on either side of it is discovered.

#19 Bomb Bloke

Bomb Bloke

    The Smily Admin

  • Admin
  • PipPipPipPipPip
  • 4,625 posts
  • Gender:Male
  • Location:Tasmania (AU)

Posted 26 December 2010 - 10:35 AM

Hmm... I'm not sure whether you're right on that one or not. Lighting in the original ignores walls (and, erm, ceilings/floors), so if your soldier is standing anywhere near a door it should be lit up enough to see it anyway.

It's true that the walls in your example would be black, because normally you have to see past walls to the east/south before you can see the walls themselves onscreen (terrain hidden by fog is always black), but that doesn't apply to doors (soldiers still have to see them, but they don't need to see PAST them before they'll be rendered). Without the exception, the door would be completely black regardless of lighting effects.

Still, there are plenty of artifacts in the coding from the pre-release versions of the game, so it's quite possible there's some relation there.
BB's X-Com Projects Page - X-Com Games At GamersGate
You're just jealous 'cause the voices only talk to me :P
We love Tammy! :)

#20 TomVD

TomVD

    aka Daiky

  • Members
  • Pip
  • 10 posts

Posted 26 December 2010 - 11:43 AM

View PostBomb Bloke, on 26th December 2010, 11:35am, said:

Hmm... I'm not sure whether you're right on that one or not. Lighting in the original ignores walls (and, erm, ceilings/floors), so if your soldier is standing anywhere near a door it should be lit up enough to see it anyway.
Yeah. I implemented lighting as I thought it seemed logical using the Light Block-MCD[33] attribute of objects. But if the original totally ignores this value, I probably should make it a feature to switch on/off.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users