Page MenuHomeWildfire Games

River Archipelago random map script
ClosedPublic

Authored by elexis on May 9 2017, 4:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 14, 8:19 PM
Unknown Object (File)
Fri, Sep 13, 1:46 PM
Unknown Object (File)
Fri, Sep 13, 6:26 AM
Unknown Object (File)
Sat, Sep 7, 4:57 AM
Unknown Object (File)
Fri, Sep 6, 1:16 AM
Unknown Object (File)
Fri, Aug 23, 11:34 AM
Unknown Object (File)
Fri, Aug 23, 11:33 AM
Unknown Object (File)
Fri, Aug 23, 11:31 AM
Subscribers
Restricted Owners Package

Details

Summary

A unique map composing of strips of land.
Needs lots of optimizing but @elexis wanted it.

Original design by Hannibal_Barca:

strips.png (405×838 px, 431 KB)

Updated design by elexis, 50% chance for each:

screenshot0568.jpg (1×1 px, 189 KB)

screenshot0566.jpg (1×1 px, 188 KB)

Test Plan

Test map for uniqueness, playability, resource collisions and the like.
Paint extra terrain under Civic Centers to ensure they won't be underwater.
Base resources same problem.

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1106/ for more details.

elexis edited reviewers, added: Hannibal_Barca; removed: elexis.
elexis edited edge metadata.

River island archipelago is the correct geomorphological type I guess.
Wrong continent, but the only fitting location I could find: https://en.wikipedia.org/wiki/Anavilhanas_National_Park

Fix various brokenness and most style issues.
Ensure terrain on player territory.
Currently no trees in the middle strips.

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1234/ for more details.

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1235/ for more details.

Refactor strip code, especially mirror the strip size and position.
Smaller strips, thus more space for ship navigation but much smaller likelihood of having enemies connected.
Fix ugly grass patches underwater. Remove unpaint calls.
Distinguish clPlayer from the new clPlayerTerritory class, especially to add forests close to the territory border.
createBumps.
Much more fish.
Make mountains actually appear.
Fix city radius painting.
Fix few more style mistakes and resource collisions.
Tested with tiny mapsize.

Rename to River Archipelago.
Also had added gaia.

Extended map description welcome @Hannibal_Barca

Executing section Default...
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before '{'.
|----|    | /mnt/data/jenkins-phabricator/workspace/phabricator_lint/binaries/data/mods/public/maps/random/strips.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/phabricator_lint/binaries/data/mods/public/maps/random/strips.js
| 143| 143| 		new LayeredPainter([tRoadWild, tRoad], [1]),
| 144| 144| 		null);
| 145| 145| 
| 146|    |-	placeCivDefaultEntities(fx, fz, id,  { 'iberWall': 'towers' });
|    | 146|+	placeCivDefaultEntities(fx, fz, id, { 'iberWall': 'towers' });
| 147| 147| 
| 148| 148| 	placeDefaultChicken(fx, fz, clBaseResource, undefined, oPeacock);
| 149| 149| 

binaries/data/mods/public/maps/random/strips.js
| 204| »   let·stripIndex·=·i·==·0·?·0·:·stripWidths.length·-·1;
|    | [NORMAL] JSHintBear:
|    | Use '===' to compare with '0'.
Executing section Python...
Executing section Perl...

http://jw:8080/job/phabricator_lint/8/ for more details.

elexis retitled this revision from New map - Strips to River Archipelago random map script.May 22 2017, 4:16 AM
elexis edited the summary of this revision. (Show Details)
Executing section Default...
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before '{'.
|----|    | /mnt/data/jenkins-phabricator/workspace/phabricator_lint/binaries/data/mods/public/maps/random/river_archipelago.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/phabricator_lint/binaries/data/mods/public/maps/random/river_archipelago.js
| 143| 143| 		new LayeredPainter([tRoadWild, tRoad], [1]),
| 144| 144| 		null);
| 145| 145| 
| 146|    |-	placeCivDefaultEntities(fx, fz, id,  { 'iberWall': 'towers' });
|    | 146|+	placeCivDefaultEntities(fx, fz, id, { 'iberWall': 'towers' });
| 147| 147| 
| 148| 148| 	placeDefaultChicken(fx, fz, clBaseResource, undefined, oPeacock);
| 149| 149| 

binaries/data/mods/public/maps/random/river_archipelago.js
| 204| »   let·stripIndex·=·i·==·0·?·0·:·stripWidths.length·-·1;
|    | [NORMAL] JSHintBear:
|    | Use '===' to compare with '0'.
Executing section Python...
Executing section Perl...

http://jw:8080/job/phabricator_lint/9/ for more details.

In D467#21587, @elexis wrote:

Rename to River Archipelago.
Also had added gaia.

Extended map description welcome @Hannibal_Barca

I have thought also to something like kerala backwaters, which fits the biome.

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1300/ for more details.

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1301/ for more details.

Thank you for fixing map up, works and looks very nice.

This revision is now accepted and ready to land.May 22 2017, 6:26 PM
Phormio added a reviewer: elexis.
Phormio added a subscriber: Phormio.
  • improving map description
  • improved map description
Owners added a subscriber: Restricted Owners Package.May 23 2017, 1:54 PM
binaries/data/mods/public/maps/random/river_archipelago.json
5 ↗(On Diff #2149)

This is the modified part, I left the rest as it was.

elexis edited reviewers, added: Phormio; removed: elexis.
binaries/data/mods/public/maps/random/river_archipelago.json
5 ↗(On Diff #2149)

Let's change that to '[...] plenty of game, but beware [...]'

Phormio requested changes to this revision.May 23 2017, 3:09 PM

Replace "plenty of game and fish" with "plenty of game", since fish is included in game (https://en.wikipedia.org/wiki/Game_fish), then I'm happy with the map.

This revision now requires changes to proceed.May 23 2017, 3:09 PM

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1325/ for more details.

Executing section Default...
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (no-multi-spaces):
|    | Multiple spaces found before '{'.
|----|    | /mnt/data/jenkins-phabricator/workspace/phabricator_lint/binaries/data/mods/public/maps/random/river_archipelago.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/phabricator_lint/binaries/data/mods/public/maps/random/river_archipelago.js
| 143| 143| 		new LayeredPainter([tRoadWild, tRoad], [1]),
| 144| 144| 		null);
| 145| 145| 
| 146|    |-	placeCivDefaultEntities(fx, fz, id,  { 'iberWall': 'towers' });
|    | 146|+	placeCivDefaultEntities(fx, fz, id, { 'iberWall': 'towers' });
| 147| 147| 
| 148| 148| 	placeDefaultChicken(fx, fz, clBaseResource, undefined, oPeacock);
| 149| 149| 

binaries/data/mods/public/maps/random/river_archipelago.js
| 204| »   let·stripIndex·=·i·==·0·?·0·:·stripWidths.length·-·1;
|    | [NORMAL] JSHintBear:
|    | Use '===' to compare with '0'.
Executing section Python...
Executing section Perl...

http://jw:8080/job/phabricator_lint/18/ for more details.

This revision was automatically updated to reflect the committed changes.