Forged Alliance Forever Forged Alliance Forever Forums 2017-12-05T14:19:41+02:00 /feed.php?f=45&t=14517 2017-12-05T14:19:41+02:00 2017-12-05T14:19:41+02:00 /viewtopic.php?t=14517&p=157566#p157566 <![CDATA[Re: FAF UnitDB App]]>
lapantouflemagic wrote:
dude, you have all my support, i like to check stuff on the database, but I've been kind of annoyed because there's like 3 or 4 of them and they don't all say the same thing.

as far as i know :

the database on the website and in the client is clearly the most understandable one, but some units are simply not present
the Github database seems the most complete one, but it's kind of hard to read and understand, and some data is different (check corsair and cormorant in both DB)
the supcom wikia database is very pleasant to use, but some data seem clearly wrong (Rhino mass cost) but i has the data for missiles which is great

and finally, there is the game lobby (restriction manager) has what seems the most accurate data since i believe it is extracted directly from game files, it has nice info such as the cost of each shot of units (did you know a T2 MML uses 1 mass per missile ?), but doesn't display a lot of other things which is troublesome.

so basically, i don't think there is any database that has all the information at once, and i'd like to see that fixed.

however, I'm not the kind of guy to just sit and say "please do it", and i'll try to see what i can do myself, but... i'm not really a programmer or anything, i have only a few bases in C++ from 8 years ago, but that's about it. i want to see how hard it is to fix the scathis anyway, so i'll check around and try to learn. If you have advice though, i'll take them !


I as well know only basic stuff about C++ but have a reasonable amount of it for java which translates to C++ to a certain extent. Whenever you start your project I'll make sure to stop by in the thread.

Statistics: Posted by MfgSolid — 05 Dec 2017, 14:19


]]>
2017-12-05T14:15:43+02:00 2017-12-05T14:15:43+02:00 /viewtopic.php?t=14517&p=157565#p157565 <![CDATA[Re: FAF UnitDB App]]> Statistics: Posted by MfgSolid — 05 Dec 2017, 14:15


]]>
2017-12-05T06:55:07+02:00 2017-12-05T06:55:07+02:00 /viewtopic.php?t=14517&p=157525#p157525 <![CDATA[Re: FAF UnitDB App]]>
as far as i know :

the database on the website and in the client is clearly the most understandable one, but some units are simply not present
the Github database seems the most complete one, but it's kind of hard to read and understand, and some data is different (check corsair and cormorant in both DB)
the supcom wikia database is very pleasant to use, but some data seem clearly wrong (Rhino mass cost) but i has the data for missiles which is great

and finally, there is the game lobby (restriction manager) has what seems the most accurate data since i believe it is extracted directly from game files, it has nice info such as the cost of each shot of units (did you know a T2 MML uses 1 mass per missile ?), but doesn't display a lot of other things which is troublesome.

so basically, i don't think there is any database that has all the information at once, and i'd like to see that fixed.

however, I'm not the kind of guy to just sit and say "please do it", and i'll try to see what i can do myself, but... i'm not really a programmer or anything, i have only a few bases in C++ from 8 years ago, but that's about it. i want to see how hard it is to fix the scathis anyway, so i'll check around and try to learn. If you have advice though, i'll take them !

Statistics: Posted by lapantouflemagic — 05 Dec 2017, 06:55


]]>
2017-10-04T14:35:52+02:00 2017-10-04T14:35:52+02:00 /viewtopic.php?t=14517&p=154890#p154890 <![CDATA[Re: FAF UnitDB App]]> First success! But isn't usable at the moment due to performance issues, as well as missing detail view, shouldn't take long though. Also serious refactoring underway as well as beautifiying the app.

Statistics: Posted by MfgSolid — 04 Oct 2017, 14:35


]]>
2017-10-03T08:42:48+02:00 2017-10-03T08:42:48+02:00 /viewtopic.php?t=14517&p=154848#p154848 <![CDATA[Re: FAF UnitDB App]]> Statistics: Posted by MfgSolid — 03 Oct 2017, 08:42


]]>
2017-09-10T09:40:19+02:00 2017-09-10T09:40:19+02:00 /viewtopic.php?t=14517&p=154044#p154044 <![CDATA[Re: FAF UnitDB App]]>
Thx in advance

Statistics: Posted by MfgSolid — 10 Sep 2017, 09:40


]]>
2017-08-03T03:54:54+02:00 2017-08-03T03:54:54+02:00 /viewtopic.php?t=14517&p=152799#p152799 <![CDATA[Re: FAF UnitDB App]]> http://supcom.wikia.com/wiki/Lua

Those commands are not working inside a mod. (wrong lua state)
Code:
    temp = io.open("supcomUnitData.json","w+")
    temp:write(jsonString)
    temp:close()

The reason, why i am using the debug log for this is simple. I don't know a way to write files from a mod.

Statistics: Posted by Uveso — 03 Aug 2017, 03:54


]]>
2017-08-02T22:35:57+02:00 2017-08-02T22:35:57+02:00 /viewtopic.php?t=14517&p=152793#p152793 <![CDATA[Re: FAF UnitDB App]]>
Thx in advance, MfgSolid

Statistics: Posted by MfgSolid — 02 Aug 2017, 22:35


]]>
2017-05-11T19:44:35+02:00 2017-05-11T19:44:35+02:00 /viewtopic.php?t=14517&p=148408#p148408 <![CDATA[Re: FAF UnitDB App]]>
this is the updated debugger with Enhancement Info and Weapon Data:
http://faforever.uveso.de/forum/UvesoDebuggerV48.zip

Unit_Stats.lua:
I added a check in line 14 to also get data from ACU's (It was only getting data from units you can build, and you cant build an ACU ^^)
Added 2 functions at the end of the file to get the weapon array/data

Functions.lua:
Added a smal check for the ACU "IsACU()"

Statistics: Posted by Uveso — 11 May 2017, 19:44


]]>
2017-05-11T00:33:52+02:00 2017-05-11T00:33:52+02:00 /viewtopic.php?t=14517&p=148369#p148369 <![CDATA[Re: FAF UnitDB App]]> http://spooky.github.io/unitdb/#/
http://direct.faforever.com/faf/unitsDB/

this is nice to see someone working on that !

Statistics: Posted by keyser — 11 May 2017, 00:33


]]>
2017-05-10T00:45:22+02:00 2017-05-10T00:45:22+02:00 /viewtopic.php?t=14517&p=148279#p148279 <![CDATA[Re: FAF UnitDB App]]>
I implemented a smal script into my debugger to show you how it works.
Its a normal mod:
http://faforever.uveso.de/forum/UvesoDebuggerV47.zip

Run the game with the debuggermod and no other mod enabled. (You can activate other unitmods, but then the debugger will check the moded units, not the original)

Ingame; open the Debugwindow with [F9] and press [SHIFT]+[i] to run the debugger.

you will see something like this inside the log:
Code:
info: xsb4302={
info:     UnitType = STRUCTURE ,
info:     Health = 3800 ,
info:     RegenRate = 0 ,
info:     ArmorType = Structure ,
info:     BuildCostMass = 7500 ,
info:     BuildCostEnergy = 105000 ,
info:     BuildTime = 5841 ,
info:     MaxSpeed = 0 ,
info:     TurnRate = 0 ,
info: },
info: uas0202={
info:     UnitType = MOBILE ,
info:     Health = 3250 ,
info:     RegenRate = 0 ,
info:     ArmorType = Normal ,
info:     BuildCostMass = 2000 ,
info:     BuildCostEnergy = 18000 ,
info:     BuildTime = 8000 ,
info:     MaxSpeed = 4.5 ,
info:     TurnRate = 40 ,
info: },


The data is generated inside the lua file in: Mods\Uveso Debugger\debug\Unit_Stats.lua

Feel free to use this and ask if you need more help.

Statistics: Posted by Uveso — 10 May 2017, 00:45


]]>
2017-05-09T23:36:14+02:00 2017-05-09T23:36:14+02:00 /viewtopic.php?t=14517&p=148276#p148276 <![CDATA[Re: FAF UnitDB App]]> Statistics: Posted by MfgSolid — 09 May 2017, 23:36


]]>
2017-05-09T23:37:24+02:00 2017-05-09T23:35:16+02:00 /viewtopic.php?t=14517&p=148275#p148275 <![CDATA[Re: FAF UnitDB App]]> The .scd files are simply renamed archives that can be unpacked with winrar/winzip and contain the bp, script and other files.

I recommend following Uvesos suggestion and use a mod to print out the values you need from the game and take those to feed your db.

Documentation can be found here.

Statistics: Posted by PhilipJFry — 09 May 2017, 23:35


]]>
2017-05-09T23:27:55+02:00 2017-05-09T23:27:55+02:00 /viewtopic.php?t=14517&p=148274#p148274 <![CDATA[Re: FAF UnitDB App]]>
If i am right, your problem is to get the data from all units, right ?

I can make you an Mod that will print you all nessesary unit data to the Logfile/Logwindow if you need this.

I can provide the date in simply array format like:

Code:
Info: Units={
Info:     UAB0104={
Info:         health = 10,
Info:         damage = 20,
Info:         Radar = true,
Info:     },
Info:     UAB0105={
Info:         health = 10,
Info:         damage = 20,
Info:         Radar = true,
Info:     },
Info: }



I don't see an easier way to get suitable unitdata because FAF not only change blueprints, we also hook (modify) existing blueprints.
You have to search for the original blueprint, look for the coresponding hook and then look what data is overwriten from the hook to see the real unitdata.

Statistics: Posted by Uveso — 09 May 2017, 23:27


]]>
2017-05-09T21:35:39+02:00 2017-05-09T21:35:39+02:00 /viewtopic.php?t=14517&p=148269#p148269 <![CDATA[Re: FAF UnitDB App]]> And so that I dont have to ask all that much is there some sort of documentation about this?

Thx for the help btw

Statistics: Posted by MfgSolid — 09 May 2017, 21:35


]]>