Database reference codes for ships

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
jmlima
Posts: 774
Joined: Wed Feb 28, 2007 10:45 pm

Database reference codes for ships

Post by jmlima »

Prob a silly question, but I cannot find the answer anywhere so, would appreciate a little help.

I've seen in scripts ships referred by the codes shown in the example below:

Chinese Type 054A Frigate (2495_4928|17470 and 2495_3731|5431)

Where do I get these codes in the database? All items in the database seem to be a single three digit code, not those codes shown above.

Thanks.
Mark352
Posts: 89
Joined: Thu Jul 25, 2024 2:35 pm

Re: Database reference codes for ships

Post by Mark352 »

jmlima wrote: Wed May 13, 2026 9:25 am I've seen in scripts ships referred by the codes shown in the example below:

Chinese Type 054A Frigate (2495_4928|17470 and 2495_3731|5431)

Thanks.
Off the top of my head I can't tell what those numbers might be referring too from that snippet. It you post the script the snippet came from it might provide some context to determine what those numbers are referring too.
jmlima
Posts: 774
Joined: Wed Feb 28, 2007 10:45 pm

Re: Database reference codes for ships

Post by jmlima »

New example, this one straight from the lua of one of the quick generator scenarios:

local randomSubDBIDs = {
625,624,621,594,590,588,587,566,563,560,295,165
}

local randomShipDBIDs = {
"959_3202|17140",
"1875_559|4867",
"604_3336|15360",
"2067_4796|2787",
"2834_4826|11837",
"2125_4796|2787",
"417_4327|22060",
}

The sub IDs make sense, but I cannot make any sense of the randomShipDBIDs.
Nikel
Posts: 2967
Joined: Tue Mar 24, 2009 10:51 am

Re: Database reference codes for ships

Post by Nikel »

There is a P Gatcomb tutorial explaining those numbers.


https://www.youtube.com/watch?v=Qc4pohpgRmU


But you asked a question in the comments?



2645_3731|18465


2645 is the ship, F 77 Te Kaha New Zealand

3731 is the helo, SH-2G Sea Sprite New Zealand

18465 is the loadout of the helo, 2xAGM-119B Penguin Mk2
jmlima
Posts: 774
Joined: Wed Feb 28, 2007 10:45 pm

Re: Database reference codes for ships

Post by jmlima »

Thanks!

And just realized why I could not make head or tails of the numbers. They are database dependent.
Mark352
Posts: 89
Joined: Thu Jul 25, 2024 2:35 pm

Re: Database reference codes for ships

Post by Mark352 »

Nikel wrote: Wed May 13, 2026 2:36 pm There is a P Gatcomb tutorial explaining those numbers.


https://www.youtube.com/watch?v=Qc4pohpgRmU
Just watched that video. Thanks for posting it.
Post Reply

Return to “Lua Legion”