Search

Search found 12 matches

by cherub
11 Feb 2016, 00:27
Forum: Balanced Annihilation
Topic: unit info -- armor classes and weapon damage
Replies: 14
Views: 5245

Re: unit info -- armor classes and weapon damage

Great, it works! Thanks for the help. Obviously written text to unknown people is not the best way to communicate. I'm glad that I finally understood, what you tried to tell me. Once I have cleaned up a bit, then I'll put the widget up/out for comments and more; the "application" that does...
by cherub
10 Feb 2016, 13:00
Forum: Balanced Annihilation
Topic: unit info -- armor classes and weapon damage
Replies: 14
Views: 5245

Re: unit info -- armor classes and weapon damage

Hi, I was using the Game.armorTypes table -- one of the part I shamelessly copied from pepeAmpere's modstats2html. Snippet: defDmg = tostring(WeaponDefs[wepID].damages[Game.armorTypes["default"] or 0]) or "-", lightDmg = tostring(WeaponDefs[wepID].damages[Game.armorTypes["li...
by cherub
10 Feb 2016, 12:29
Forum: Balanced Annihilation
Topic: unit info -- armor classes and weapon damage
Replies: 14
Views: 5245

Re: unit info -- armor classes and weapon damage

Hi again, stil at work; will try code later. Some questions I can ask, though. [...](1) How much damage is potentially dealt by a given weapon to a given unit, on impact, is determined by (a) looking at the armor type of the target unit, and then (b) looking at the damage dealt by the weapon to that...
by cherub
10 Feb 2016, 09:43
Forum: Balanced Annihilation
Topic: unit info -- armor classes and weapon damage
Replies: 14
Views: 5245

Re: unit info -- armor classes and weapon damage

Hi again, I'm still not done. Unfortunately (and not unexpected from my side) the last pseudo-code snippets didn't work. I still can't retrieve the damage information per weapon per unit via the ingame lua interface (e.g. how much damage does the Bantha laser make against a Zeus?). I could retrieve ...
by cherub
05 Feb 2016, 16:26
Forum: Balanced Annihilation
Topic: unit info -- armor classes and weapon damage
Replies: 14
Views: 5245

Re: unit info -- armor classes and weapon damage

Hi, that's a quick reply. I can't check this right now, I'm still at work. In the UnitDef Tables I can see that there is one table 'weapondefs' and a second one called 'weapons'. 'weapons' seemingly extends the first table, based on the index of the 'wepondefs' table. So it looks like I can access t...
by cherub
05 Feb 2016, 15:59
Forum: Balanced Annihilation
Topic: unit info -- armor classes and weapon damage
Replies: 14
Views: 5245

Re: unit info -- armor classes and weapon damage

Hi, I am blind. I'm still not sure how I missed it, but the information is given in the initial UnitDef file, as shipped with the mod itself. I had forgotten that the mod2html script ran on the original, unprocessed UnitDef files. Which in turn makes the whole system I had devised a lot easier, as u...
by cherub
05 Feb 2016, 15:49
Forum: Balanced Annihilation
Topic: unit info -- armor classes and weapon damage
Replies: 14
Views: 5245

Re: unit info -- armor classes and weapon damage

Hi, right away: all I want is information, to build "yet another info tool". I can get all postprocessed UnitDef parts via Lua ingame, I've given an example in my first post for the Bantha unit ('armbanth'). One piece of understanding is missing; the central questions are: I can't figure o...
by cherub
04 Feb 2016, 20:26
Forum: Balanced Annihilation
Topic: unit info -- armor classes and weapon damage
Replies: 14
Views: 5245

Re: unit info -- armor classes and weapon damage

Maybe I didn't phrase the question correctly. I'll try to make an example, let's take a fight of a Commander against a Peewee. My question is now: How do I determine the damage that the Commander deals to the Peewee and vice versa. The information I have at hand is: The Peewee has armorClass 'else' ...
by cherub
04 Feb 2016, 16:15
Forum: Balanced Annihilation
Topic: unit info -- armor classes and weapon damage
Replies: 14
Views: 5245

unit info -- armor classes and weapon damage

Hi, as part of a mixture of a fun project and some 'serious' learning effort I'm writing yet another unit info. The main difference for me is that it is supposed to have more interactivity, i.e. a dedicated GUI, where one can not only browse information, but also display 'custom' selections. E.g. ty...
by cherub
09 Mar 2012, 16:18
Forum: Engine
Topic: compilation trouble with 0.87 linux/ubuntu 10.04
Replies: 10
Views: 1400

Re: compilation trouble with 0.87 linux/ubuntu 10.04

Hi, reading, thinking and understanding helps sometimes. First I tried to build 87.0 with a newer gcc version (4.6.3), simply to see if the flag works. It didn't, because the wrong syntax in the cmake file, as jk pointed out. I applied the change -- tada, it worked. Then I tried to build spring with...
by cherub
09 Mar 2012, 13:13
Forum: Engine
Topic: compilation trouble with 0.87 linux/ubuntu 10.04
Replies: 10
Views: 1400

Re: compilation trouble with 0.87 linux/ubuntu 10.04

Hi, sorry for the wrong zero positioning (0.87 -> 87.0). It seems this: [...](there is a bug in the cmake files of 87.0, causing to not pass "-march=i686") is actually "seen" by cmake. I noticed it during invocation: -- Checking to see if CXX compiler accepts flag -march i686 -- ...
by cherub
08 Mar 2012, 19:22
Forum: Engine
Topic: compilation trouble with 0.87 linux/ubuntu 10.04
Replies: 10
Views: 1400

compilation trouble with 0.87 linux/ubuntu 10.04

Hi, (dear admin: please move this to right place, if this isn't.) This a spring-compilation-newbie question about a specific problem during compilation/linking with v0.87 on Ubuntu 10.04. I just wanted to get my feet a little bit more wet and tried to compile spring myself. So I downloaded the "...

Go to advanced search