Random map Schwarzwald with mapsize set to tiny raises an error and doesn't start the match at all.
Details
- Reviewers
vladislavbelov elexis Stan - Commits
- rP19288: Fixes a bug that caused an error when distributeEntitiesByHeight() in hightmap.
- Trac Tickets
- #4152
Execute Atlas, set random map to generate to Schwarzwald, optionally change seed and number of players (2 are advisable) to your liking, generate
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/285/ for more details.
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/286/ for more details.
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/287/ for more details.
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/288/ for more details.
Another try
svn diff now definitely gives full context. Let's see if this works out...
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/289/ for more details.
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/290/ for more details.
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/291/ for more details.
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/292/ for more details.
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/293/ for more details.
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/294/ for more details.
Build is green
Updating workspaces. Build (release)... Build (debug)... Running debug tests... Running cxxtest tests (302 tests)..............................................................................................................................................................................................................................................................................................................OK!
http://jw:8080/job/phabricator/295/ for more details.
Build has FAILED
Link to build: http://jw:8080/job/phabricator/296/
See console output for more information: http://jw:8080/job/phabricator/296/console
binaries/data/mods/public/maps/random/heightmap/heightmap.js | ||
---|---|---|
156 ↗ | (On Diff #413) | Yes. The fist will be logged if there is no valid point on the map any placement is possible. The second will occur if there are points where placement could happen but still nothing has been placed. The second should never happen, it's just there to be sure if it happens it's logged. They will never occur both ar the same call (for the function returns if the first one triggers). |
Despite the fact that the last change was in october 2016 (rP18840), the patch doesn't apply somehow.
The one on the ticket still works: http://trac.wildfiregames.com/attachment/ticket/4152/heightmapFix2016-12-6.patch
binaries/data/mods/public/maps/random/heightmap/heightmap.js | ||
---|---|---|
122 ↗ | (On Diff #403) | That indeed might be a good idea. Thanks! |
Build has FAILED
Link to build: http://jw:8080/job/phabricator/395/
See console output for more information: http://jw:8080/job/phabricator/395/console
Patch works as it now doesn't assume that we always find a valid tile to place the mines and instead prints a logmessage and goes on with the mapgen.
Few code style improvements proposed.
binaries/data/mods/public/maps/random/heightmap/heightmap.js | ||
---|---|---|
156 ↗ | (On Diff #413) | Two spaces |
113 ↗ | (On Diff #586) | Add a newline somewhere in the argument list. |
118 ↗ | (On Diff #586) | dont add that pair of braces, not needed nor useful IMO |
123 ↗ | (On Diff #586) | Okay (mentioned the destructuring assignment in irc few days ago, i.e. let [cX, cY] = [x + 0.5, y + 0.5], but I didn't see you push the checkpoint, so it's all good) |
125 ↗ | (On Diff #586) | newline after the continue statements |
126 ↗ | (On Diff #586) | Avoid "Avoid avoidPoints", rephrase |
128 ↗ | (On Diff #586) | It bugged here: ERROR: JavaScript error: maps/random/heightmap/heightmap.js line 128 TypeError: tile is undefined distributeEntitiesByHeight@maps/random/heightmap/heightmap.js:128:1 @maps/random/schwarzwald.js:266:1 as it assumed that we can find a valid tile. |
135 ↗ | (On Diff #586) | Two spaces. |
146 ↗ | (On Diff #586) | Use the new pickRandom function here |
still dont like those braces :p
no space before the \n in the string
integer does not exist in JS (doc), only number
Thanks for the fix!
Build has FAILED
Link to build: http://jw:8080/job/phabricator/445/
See console output for more information: http://jw:8080/job/phabricator/445/console
Removed spaces
Changed "integer" to "number" for js doc for the changed function
Thanks elexis!
The "build failed" message does seem to be unrelated to this patch:
- Raw diff applied cleanly
- Nothing needed to be build
Build has FAILED
Link to build: http://jw:8080/job/phabricator/497/
See console output for more information: http://jw:8080/job/phabricator/497/console
binaries/data/mods/public/maps/random/heightmap/heightmap.js | ||
---|---|---|
123 ↗ | (On Diff #586) | That "checkpoint" is actually needed and pushed to the list of valid points at the end in this format. |
Build has FAILED
Link to build: http://jw:8080/job/phabricator/499/
See console output for more information: http://jw:8080/job/phabricator/499/console