Madow Posted December 8, 2005 Report Share Posted December 8, 2005 Hi, I can't load any other maps. Do you need the full version to play air.lua and that? Link to comment Share on other sites More sharing options...
Jezulkim Posted December 8, 2005 Report Share Posted December 8, 2005 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 Link to comment Share on other sites More sharing options...
Madow Posted December 8, 2005 Author Report Share Posted December 8, 2005 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. Link to comment Share on other sites More sharing options...
Blood Angel Posted December 9, 2005 Report Share Posted December 9, 2005 Good. But remember, it's a secret! (shh) Link to comment Share on other sites More sharing options...
Angry Lawyer Posted December 9, 2005 Report Share Posted December 9, 2005 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 Link to comment Share on other sites More sharing options...
Kratos Posted December 9, 2005 Report Share Posted December 9, 2005 I believe its in the main.lua coding Angry Lawyer. Link to comment Share on other sites More sharing options...
Angry Lawyer Posted December 9, 2005 Report Share Posted December 9, 2005 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 -Angry Lawyer Link to comment Share on other sites More sharing options...
Serge Posted December 9, 2005 Report Share Posted December 9, 2005 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). Link to comment Share on other sites More sharing options...
Angry Lawyer Posted December 10, 2005 Report Share Posted December 10, 2005 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 Link to comment Share on other sites More sharing options...
Blood Angel Posted December 11, 2005 Report Share Posted December 11, 2005 Serge INVENTED programming. He's bound to be good at it. I'm fairly sure he also invented microwaves and pineapples. Link to comment Share on other sites More sharing options...
Sporb Posted December 11, 2005 Report Share Posted December 11, 2005 (edited) and gravity 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 December 11, 2005 by Sporb Link to comment Share on other sites More sharing options...
Angry Lawyer Posted December 11, 2005 Report Share Posted December 11, 2005 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now