spring / Shard

A reprogrammable AI framework for the Spring Engine
https://springrts.com/wiki/AI:Shard
1 stars 1 forks source link

load lua code from game archive #2

Open abma opened 7 years ago

abma commented 7 years ago

for https://github.com/tomjn/Shard/issues/102 to work nicely it should be pulled from the game archive:

i.e. the game archive has a folder "Shard" which contains all the lua files.

abma commented 7 years ago

CircuitAI seems to have this functionality (partly at least): https://github.com/rlcevg/CircuitAI/blob/2d3274e198152d0f0e916dec697a07e67292f521/src/circuit/setup/SetupManager.cpp#L544

https://github.com/rlcevg/CircuitAI/blob/2d3274e198152d0f0e916dec697a07e67292f521/src/circuit/setup/SetupManager.cpp#L633

tomjn commented 6 years ago

This won't happen:

I can see the allure of this feature, but it's really a can of worms waiting to be opened, and anybody wanting to work with Shard should be doing it as a LuaAI