Comments (5)
What version are you using?
from zkgbai.
This was built from d5bca36, the current master.
from zkgbai.
Hm. The line-of-sight thing is more or less untractable. It has no way of predicting whether the porc will actually have a clear shot at anything or not. The suicide thing is problematic because it prefers not to run workers away when building/repairing porc unless it deems the situation hopeless (based on the threat of things it knows are there).
It'll abandon porc if that porc gets killed by enemy porc, but if enemy porc is targeting the worker, and especially if it can't see the porc, then it doesn't know that it needs to run away. Given that it built the defender inside the range of the stardust it obviously didn't know it was there, and unlike a human it can't infer it either, mainly because it has no unit ID to associate with it. Without a unit ID it would end up creating a new dummy porc literally every time a bullet hit a unit if it was out of los. Porc would end up getting counted infinite times for threat not to mention it'd have ridiculously bad performance.
Unfortunately spring is excessively strict about not sharing any information about things that are out of los and radar, which is bad for the reasons above but there's pretty much nothing I can do about it. It's already got workarounds wherever they're possible, but this is a pathological case where it isn't.
from zkgbai.
CSI handled this by adding a dummy unit if it received damage. If there was an existing dummy unit of the same unitdef nearby, it simply wouldn't add another.
from zkgbai.
Hm. The line-of-sight thing is more or less untractable. It has no way of predicting whether the porc will actually have a clear shot at anything or not. The suicide thing is problematic because it prefers not to run workers away when building/repairing porc unless it deems the situation hopeless (based on the threat of things it knows are there).
It's actually somewhat cheaply computable using the same raycast algorithm that the engine uses to actually calculate LoS in real time.
from zkgbai.
Related Issues (15)
- Graph manager broke horribly HOT 1
- Even one instance of ZKGBAI produces insane CPU load/lag HOT 1
- "StartBox" class missing.. HOT 1
- JDK9 build issue HOT 1
- IntegerInterleavedRaster.getDataElements ArrayIndexOutOfBoundsException HOT 1
- patch: make ant install target a bit more cross-platform HOT 4
- memory allocation error with 0.8.1 HOT 10
- Missing FeatureDef::IsReclaimable() HOT 1
- Fresh clone of ZKGBAI ( 4382a1b ) does not compile with 'ant dist' HOT 1
- ZKGBAI freezes on start on Spring 103.0.1-516 HOT 3
- Endgame crash HOT 1
- Accomodate mass internal renames HOT 2
- Wrong behaviour when losing the commander HOT 1
- Code review HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zkgbai.