SimHacker / SimHacker/MicropolisCore
Rendering sprites
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 194
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
With the JavaScript port MicropolisJS, I remember I found and fixed a bug in the scanning (?) logic that was preventing trains from being generated.
It looks like the same bug exists in MicropolisEngine - or rather, the port faithfully translated the bug into JS. As far as I can see there are no trains running in any of the cities.
I forgot specifically which part of the code was causing the issue, but it was something small, like a single conditional statement. Debugging the C++ code is somewhat challenging (well for one I'm not so familiar with the language) - I think I'll temporarily put a JS callback that receives values and outputs to console log.
Anyway, I'll keep looking, tracing the logic - will make a pull request if I solve it.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the train-generation scanning logic in MicropolisEngine and compare it with the JavaScript MicropolisJS port. Use the proposed JavaScript callback and console logging to inspect values while narrowing down the conditional; done means trains are generated and run in cities without the reported scanning failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, javascript
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100