Jump to content

add function for adding/removing equip/fuel/munitions from a base


Drexx

Recommended Posts

We seriously need a get and set function for adding/removing equip/fuel/munitions from bases. I cannot build my dynamic falcon BMS style campaign without simple hooks into these memory address's that store these values.

 

I think it would be pretty simple to build these 2 functions (maybe 6, get and set for aircraft/ fuel/weapons) since they are just stored values that are loaded from the mission file at start anyway.

 

The current methods of spawning in aircraft and let the base absorb if (land and let it despawn) causes lag and is really a hack way to do it atm (what were stuck with).

 

Looking forward to making a more rich player environment with these simple changes (should be, setting a getter and setter to a standard memory allocated address is the building blocks of all object oriented code)

 

Thanks

 

P.S. if you under the hood looking at doing this, let us change the weather and time too if possible, but this is more of a wish list, not sure if multiplayer code has a way to update the clients that a change like this has happened or not


Edited by BIGNEWY
TITLE

Developer of DDCS MP Engine, dynamicdcs.com

https://forums.eagle.ru/showthread.php?t=208608

Link to comment
Share on other sites

The warehouse system is hardwired into the core of DCS and is not accessible to scripting besides what is possible in the ME. In view of this, don't expect to see something quick in this field.

[sIGPIC][/sIGPIC]

 

Commodore 64 | MOS6510 | VIC-II | SID6581 | DD 1541 | KCS Power Cartridge | 64Kb | 32Kb external | Arcade Turbo

Link to comment
Share on other sites

The warehouse system is hardwired into the core of DCS and is not accessible to scripting besides what is possible in the ME. In view of this, don't expect to see something quick in this field.

 

It's a database/memory variable, all I need is a get and set to the memory holding the number, that should be VERY quick to implement.

Developer of DDCS MP Engine, dynamicdcs.com

https://forums.eagle.ru/showthread.php?t=208608

Link to comment
Share on other sites

It's a database/memory variable, all I need is a get and set to the memory holding the number, that should be VERY quick to implement.

 

I think he means the warehouse component was written in such a way that makes it very hard to incorporate into the mission scripting lua environment without rewriting a ton of code.

Developer of Kaukasus Insurgency - a customizable Dynamic PvE Campaign with cloud hosting and stats tracking. (Alpha)

 

http://kaukasusinsurgency.com/

Link to comment
Share on other sites

There are tons of threads about the current warehouse system, you may want to go through those if you haven't already.

 

AFAIK, the database/warehouse system isn't "open" to anything and getting memory address or address range is not going to be simply and I expect, isn't going to magically solve the issue of intervening in the warehouse system of DCS.

[sIGPIC][/sIGPIC]

 

Commodore 64 | MOS6510 | VIC-II | SID6581 | DD 1541 | KCS Power Cartridge | 64Kb | 32Kb external | Arcade Turbo

Link to comment
Share on other sites

I am asking the dev's to put a get/set option in the API that is designated here, http://wiki.hoggit.us/view/Part_1 and http://wiki.hoggit.us/view/Part_2

 

For example:

 

coalition.getGroups(enum coalition.side coalition, enum Group.Category groupCategory or nil)

coalition.addGroup(enum country.id country, enum Group.Category groupCategory, table groupData)

 

I am asking for

 

do

local airbases = coalition.getAirbases(coalition.side.RED)

 

for airbaseIndex = 1, #airbases do

local curAirbase = airbases[airbaseIndex]

local airbaseInventory = curAirbase.getEquipment()

 

----> psuedo code, modify airbaseInventory table <---

 

curAirbase.setEquipment(modifiedAirbaseInventory)

end

end

 

I am looking for functions getEquipment and setEquipment , thats it


Edited by Drexx

Developer of DDCS MP Engine, dynamicdcs.com

https://forums.eagle.ru/showthread.php?t=208608

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

We need this really soon for amazing multiplayer missions!

DCS Wishlist: 2K11 Krug SA-4 Ganef SAM, VR-TrackIR icons next to player names in score-chart

PvP: 100+ manual player-kills with Stingers on a well known dynamic campaign server - 100+ VTOL FARP landings & 125+ hours AV-8B, F-14 crew, royal dutch airforce F-16C - PvP campaigns since 2013

DCS server-admins: please adhere to a common sense gaming industry policy as most server admins throughout the industry do. (After all there's enough hostility on the internet already which really doesn't help anyone. Thanks.)

Dell Visor VR headset, Ryzen 5 5600 (6C/12T), RTX 2060 - basic DCS-community rule-of-thumb: Don't believe bad things that a PvP pilot claims about another PvP pilot without having analyzed the existing evidence

Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...