Jump to content


Photo

Loading Maps


  • Please log in to reply
11 replies to this topic

#1 Madow

Madow

    Sergeant

  • Forum Members
  • PipPipPip
  • 38 posts

Posted 08 December 2005 - 05:12 AM

Hi, I can't load any other maps. Do you need the full version to play air.lua and that?
HEX-Com
A new X-COM board game in the works!

Join my Games Workshop forum!

Posted Image

#2 Jezulkim

Jezulkim

    Captain

  • Forum Members
  • PipPipPipPip
  • 194 posts

Posted 08 December 2005 - 06:26 AM

No, airport map needs TftD full version. I can't give you a link, but you can search it. Here's a tip: I think the link to tftd download site is here: www.reloaded.org
That's my team in my avatar!

#3 Madow

Madow

    Sergeant

  • Forum Members
  • PipPipPip
  • 38 posts

Posted 08 December 2005 - 06:41 AM

I'll just download both UFO Defence and TFTD from -deleted-

Edit by Kratos: Please refrain from posting piracy links. We happen to keep such policy on the xcomufo boards.
HEX-Com
A new X-COM board game in the works!

Join my Games Workshop forum!

Posted Image

#4 Blood Angel

Blood Angel

    Captain

  • Forum Members
  • PipPipPipPip
  • 513 posts

Posted 09 December 2005 - 10:22 AM

Good. But remember, it's a secret! (shh)

#5 Angry Lawyer

Angry Lawyer

    Sergeant

  • Forum Members
  • PipPipPip
  • 53 posts

Posted 09 December 2005 - 11:25 AM

Midly-related question - does anyone know where in the code UFO2000 actually detects whether a map/weapon set is available to you or not (i.e no TFTD weapons or maps if you don't have the game installed)? Because I've spent the last hour searching, with no results :(

-Angry Lawyer

#6 Kratos

Kratos

    UFO2000 Staff

  • Moderators
  • PipPipPipPipPip
  • 4,113 posts

Posted 09 December 2005 - 11:31 AM

I believe its in the main.lua coding Angry Lawyer.

#7 Angry Lawyer

Angry Lawyer

    Sergeant

  • Forum Members
  • PipPipPip
  • 53 posts

Posted 09 December 2005 - 11:38 AM

Thanks, that's a step in the right direction. My initial bets are with line 482, the *F function, but I've yet to work out quite how it works.

And Kratos, I'm sure I owe you a beating with some Floaters :P

-Angry Lawyer

#8 Serge

Serge

    Project Leader: UFO 2000

  • Xenocide Programming Department
  • 785 posts

Posted 09 December 2005 - 12:05 PM

Midly-related question - does anyone know where in the code UFO2000 actually detects whether a map/weapon set is available to you or not (i.e no TFTD weapons or maps if you don't have the game installed)?  Because I've spent the last hour searching, with no results :(

In main.lua there is a code that prepares a list of available maps/weapon sets. Check definitions of functions 'AddXcomTerrain' and 'AddEquipment'. There is a log written to 'init-scripts.log' on loading of the game, it lists all the maps/wepoans and their crc32 values. We rely on the fact that it is *very* low probability to get crc32 collision accidently [1]. Also we have 'AddUnit' function which registers different animation types, and can be used as a base for a complete units modding support. And see 'Connect::do_planner' function, it contains code that performs local and remote maps/weapons sets comparison.

You can start from trying to port sectoid/muton/floater/snakeman animation code to lua. There is already animation for 'ethereal' and 'civilian' available (no surprise - they were the easiest animation functions to implement :) ). Check 'extensions/unit-chameleon' directory.

[1] Crc32 is not secure though, so replacing it with cryptographical hash function like MD5 or SHA1 is maybe not a bad idea. Anyway, if anyone would try to deceive crc32 check, he will just get synchronization problems when playing the game (and we will also have hard time trying to figure out the source of these bugs), that's not a protections against cheating, it is a protection against synchronization bugs.

PS. To get familiar with lua programming, you can check 'script' directory, there is a collection of scripts written for different purposes and they may serve as examples. To get lua interpreter, you can run 'make tools' to get lua.exe (it is a standard lua interpreter, but with sqlite3 database support compiled in).
ufo2000 development team
http://ufo2000.sourceforge.net

#9 Angry Lawyer

Angry Lawyer

    Sergeant

  • Forum Members
  • PipPipPip
  • 53 posts

Posted 10 December 2005 - 06:47 AM

Woah, reading through all these LUA bits has taught me that I'm really not that good at programming compared to you :(

Thanks for the guidance, although the LUAing of the units might take longer than expected.

-Angry Lawyer

#10 Blood Angel

Blood Angel

    Captain

  • Forum Members
  • PipPipPipPip
  • 513 posts

Posted 11 December 2005 - 05:24 AM

Serge INVENTED programming. He's bound to be good at it.

I'm fairly sure he also invented microwaves and pineapples.

#11 Sporb

Sporb

    UFO2000 Staff

  • Moderators
  • PipPipPipPip
  • 739 posts

Posted 11 December 2005 - 06:15 AM

and gravity Posted Image

would it be possible to release all the current maps in the next release of u2k? would save alot of hassles. And isnt there a terrain file for tftd maps in the map depo?

Edited by Sporb, 11 December 2005 - 06:19 AM.


#12 Angry Lawyer

Angry Lawyer

    Sergeant

  • Forum Members
  • PipPipPip
  • 53 posts

Posted 11 December 2005 - 07:43 AM

Serge INVENTED programming. He's bound to be good at it.

I'm fairly sure he also invented microwaves and pineapples.

<{POST_SNAPBACK}>

That's the best thing I've read all day ^_^

-Angry Lawyer