Skip to content

Commit

Permalink
metadata: add Jasoncw's content (#54)
Browse files Browse the repository at this point in the history
* Add `mipro:essentials`

* Add page 1

* Add page 2

* Add page 3

* Add page 4

* Add missing subfolders

* Fix corrupt version

* Properly escape regexes

* Update subfolder detection

* Update expand-variants-test.js

* Create 32737-guardian-building.yaml

* Fall back to description for subfolders

* Add Jasoncw's CAMeLots

* Add page 5

* Improve subfolder detection

* Add I-HT with capacity variant

* Add one flag many nations as dependency

* Add page 6 & 7

* Fix linting error

* Fix big red lighthouse

* Fix linting errors

* Keep both DN and MN models where needed

* Create day-of-peace.yaml

* Revert "Create day-of-peace.yaml"

This reverts commit 03ea2a6.

* Revert "Keep both DN and MN models where needed"

This reverts commit d76febc.
  • Loading branch information
sebamarynissen authored Dec 31, 2024
1 parent 8117f48 commit 3975bd6
Show file tree
Hide file tree
Showing 162 changed files with 8,663 additions and 3 deletions.
3 changes: 2 additions & 1 deletion actions/fetch/complete-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ function generateVariant(config, metadata) {
.map(file => path.basename(file));
for (let file of files) {
if (appliedPatterns.some(regex => regex.test(file))) {
exclude.push(`/${file}`);
let escape = /[.*+?^${}()|[\]\\]/g;
exclude.push(`/${file.replaceAll(escape, '\\$&')}`);
}
}
} else {
Expand Down
17 changes: 17 additions & 0 deletions actions/fetch/scrape.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ export default async function scrape(url) {
.replaceAll(/-+/g, '-');
});
let subfolder = descriptorToSubfolder(descriptors);

// If we don't have a subfolder by now, try the description.
if (!subfolder) {
if (description.match(/\bR(\$|§)+/)) {
subfolder = '200-residential';
} else if (description.match(/\bC[OS](\$|§)+/m)) {
subfolder = '300-commercial';
} else if (description.match(/\bI-(HT|M|D)\b/)) {
subfolder = '400-industrial';
} else if (description.match(/\bstation\b/i)) {
subfolder = '700-transit';
} else if (description.match(/\blibrary\b/i)) {
subfolder = '620-education';
}
}
return { description, images, subfolder };

}
Expand Down Expand Up @@ -107,6 +122,7 @@ const descriptorMap = {
residential: '200-residential',
commercial: '300-commercial',
industrial: '400-industrial',
industry: '400-industrial',
agricultural: '410-agriculture',
'utilities-water': '500-utilities',
'utilities-power': '500-utilities',
Expand All @@ -119,6 +135,7 @@ const descriptorMap = {
'civics-rewards': '360-landmark',
'civics-parks': '660-parks',
civics: '600-civics',
civic: '600-civics',
services: '600-civics',
automata: '710-automata',
transport: '700-transit',
Expand Down
4 changes: 2 additions & 2 deletions actions/fetch/test/expand-variants-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ describe('#expandVariants()', function() {
{
assetId: 'normal',
exclude: [
'/Jasoncw - Guardian Building - Grow (CO$$$8_2x5).SC4Lot',
'/CS$$$8_2x5_Guardian_Building.SC4Lot',
'/Jasoncw - Guardian Building - Grow \\(CO\\$\\$\\$8_2x5\\)\\.SC4Lot',
'/CS\\$\\$\\$8_2x5_Guardian_Building\\.SC4Lot',
],
},
{ assetId: 'cam' },
Expand Down
53 changes: 53 additions & 0 deletions src/yaml/jasoncw/13607-monkeydragon-games.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
group: jasoncw
name: monkeydragon-games
version: "1.0"
subfolder: 300-commercial
info:
summary: MonkeyDragon Games
description: |-
A café, bookstore, and game shop all in one! Erika the barista will serve you wonderful coffee as you play anything from Poker to Dungeons and Dragons, read (and hopefully buy) a book, or simply meet with your friends. Rich in quality, yet modest in price and atmosphere, let Monkey-Dragon games come to your town!
The building stats have been tuned to blend as smoothly into default SC4 buildings as possible. However, if your city has a high CS$$$ demand and an abundance of 1x2 or 2x1 lots, you may notice the building growing frequently. Please keep in mind that many of the Maxis CS$$$ buildings repeat just as often, and that no amount of tweaking can avoid this while still having reasonable stats.
**The building versions in detail**
\=============================
**I. Growable C$$$** ( "Monkey-Dragon Games" )
\=============================
This version works as a normal commercial building in every respect.
Occupants: 30 CS$$$ (52 CS$$ / 88 CS$ when dilapidated)
Growth Stage: 5 (2x2 lot) / 6 (1x2 lot) \[You can install one of these lots or both of them.\]
Lot Size: 2x1 tiles (Stage 5) / 1x2 tiles (Stage 6)
Tileset(s): Chicago, New York
Grows on: Medium and dense commercial zones
Bulldoze Cost: $ 226
Worth: $ 226
Value: $ 2,206
Construction Time: 22 days
Flammability: 35
Max. Fire Stage: 3
Power Used: 8 MWh/month
Water Used: 105 gallons/month
Air pollution: 4 over 4 tiles
Water pollution: 2 over 5 tiles
Garbage: 5 tons/month
**A café created by: Jasoncw
Modding by: T Wrecks**
author: Jasoncw
website: https://community.simtropolis.com/files/file/13607-monkeydragon-games/
images:
- https://www.simtropolis.com/objects/screens/0018/9ff3c9dbb9a9ca0725e64aa9eb065422-batframe2.jpg
assets:
- assetId: jasoncw-monkeydragon-games

---
assetId: jasoncw-monkeydragon-games
version: "1.0"
lastModified: "2005-09-08T21:05:54Z"
url: https://community.simtropolis.com/files/file/13607-monkeydragon-games/?do=download&r=34971
26 changes: 26 additions & 0 deletions src/yaml/jasoncw/13619-3-houses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
group: jasoncw
name: 3-houses
version: "1.0"
subfolder: 200-residential
info:
summary: 3 Houses
description: |-
Sick of perfect rows of houses in your neighborhoods? This lot can help. Three houses have been spaced on 4 tiles to give your neighborhoods a more natural feel. These houses are randomly selected from the New York tileset as it grows.
R$$ 33 occupants
Contains 1x4 lot
[Click here for discussion of new and current projects](https://www.simtropolis.com/idealbb/view.asp?topicID=68271)
author: Jasoncw
website: https://community.simtropolis.com/files/file/13619-3-houses/
images:
- https://www.simtropolis.com/objects/screens/0019/a6bfebe3028ef2f7fc586b83a0e166b9-batframe3.jpg
assets:
- assetId: jasoncw-3-houses

---
assetId: jasoncw-3-houses
version: "1.0"
lastModified: "2005-09-11T00:36:23Z"
url: https://community.simtropolis.com/files/file/13619-3-houses/?do=download&r=34987
28 changes: 28 additions & 0 deletions src/yaml/jasoncw/13965-small-train-station.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
group: jasoncw
name: small-train-station
version: "1.1"
subfolder: 700-transit
info:
summary: Small Train Station
description: |-
A small train station made to fit in small areas, or areas where you do not want to demolish the area for a larger station. Placing rail stations can increase rail usage, increase pedestrian traffic, and lower road congestion. Pedestrian traffic increases customers for commercial lots, and lower road congestions reduces air pollution which decreases local desirablitity.
Rail tracks and and train stations take up alot of space in your city; this lot will enable you to place stations in places previously not possible.
This train station contains elements from the Beaux Arts and Art Deco architecture styles.
**BAT by: Jasoncw
Modding by: Twrecks**
[*Click here for discussion of new and current projects*](https://www.simtropolis.com/idealbb/view.asp?topicID=68271)
author: Jasoncw
website: https://community.simtropolis.com/files/file/13965-small-train-station/
images:
- https://www.simtropolis.com/objects/screens/0009/4f045418b37757adb641cd92ee4bc0ea-batframe4.jpg
assets:
- assetId: jasoncw-small-train-station
---
assetId: jasoncw-small-train-station
version: "1.1"
lastModified: "2020-05-25T21:46:54Z"
url: https://community.simtropolis.com/files/file/13965-small-train-station/?do=download&r=181217
34 changes: 34 additions & 0 deletions src/yaml/jasoncw/14067-medium-sized-train-station.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
group: jasoncw
name: medium-sized-train-station
version: "1.1"
subfolder: 700-transit
info:
summary: Medium Sized Train Station
description: |-
A medium sized train station for your cities. This is a larger version of a similar train station I made.
[Small Train Station](https://www.simtropolis.com/stex/index.cfm?mode=files&filetype=BAT&Str=small%20train%20station)[](https://www.simtropolis.com/stex/index.cfm?mode=files&filetype=BAT&Str=small%20train%20station)
[](https://www.simtropolis.com/stex/index.cfm?mode=files&filetype=BAT&Str=small%20train%20station)
This train station contains elements from the Beaux Arts and Art Deco architecture styles.
Plop Cost: $ 125
Contains 1x4 train station lot.
**BAT by: Jasoncw****Modding by: Twrecks**
[*Click here for discussion of new and current projects*](../idealbb/view.asp?topicID=68271)
author: Jasoncw
website: https://community.simtropolis.com/files/file/14067-medium-sized-train-station/
images:
- https://www.simtropolis.com/objects/screens/0013/717f8e48fb84b1960984cf24ef003bca-batframe5.jpg
assets:
- assetId: jasoncw-medium-sized-train-station

---
assetId: jasoncw-medium-sized-train-station
version: "1.1"
lastModified: "2020-05-25T21:47:19Z"
url: https://community.simtropolis.com/files/file/14067-medium-sized-train-station/?do=download&r=181220
55 changes: 55 additions & 0 deletions src/yaml/jasoncw/14279-wagner-hotel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
group: jasoncw
name: wagner-hotel
version: "1.0"
subfolder: 300-commercial
info:
summary: Wagner Hotel
description: |-
The classiest hotel in all of Sim Nation, Wagner Hotel is seventeen stories of pure luxury. St. Ritzy can't even compare.
Also includes a residential version and a landmark version. Please read the readme for full details.
* * *
Wagner Hotel (Growable)
CS§§§ 292 jobs.
Contains: 2x2 and 2x3 lots.
* * *
Wagner Hotel (Ploppable)
CS§§§ 292 jobs.
Contains: 2x3 lot.
Plop Cost: §56,000
* * *
Wagner Apartments (Growable)
R§§§ 278 residents.
Contains: 2x2 and 2x3 lots.
* * *
Wagner Building (Landmark)
Contains: 2x3 lot.
Plop Cost: §52,000
* * *
**BAT by: Jasoncw
Modding by: T Wrecks**
*[Click here for discussion of new and current projects by Jasoncw](https://www.simtropolis.com/forum/messageview.cfm?catid=37&threadid=68271&enterthread=y)*
author: Jasoncw
website: https://community.simtropolis.com/files/file/14279-wagner-hotel/
images:
- https://www.simtropolis.com/objects/screens/0025/e06103c2c4784208bd9baa9ab152fd23-batframe6.jpg
- https://www.simtropolis.com/objects/screens/0025/e06103c2c4784208bd9baa9ab152fd23-batframe7.jpg
assets:
- assetId: jasoncw-wagner-hotel

---
assetId: jasoncw-wagner-hotel
version: "1.0"
lastModified: "2005-11-30T17:35:12Z"
url: https://community.simtropolis.com/files/file/14279-wagner-hotel/?do=download&r=35965
74 changes: 74 additions & 0 deletions src/yaml/jasoncw/14502-mary-hotel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
group: jasoncw
name: mary-hotel
version: "1.0"
subfolder: 300-commercial
info:
summary: Mary Hotel
description: |-
Mary Hotel has been expertly designed to give you the best trade-off between comfort and price. The rooms and the building's exterior have been beautifully crafted with relatively inexpensive materials to keep room prices down, and the hotel's excellent service staff perform their duties with that same intent. You can enjoy your stay at Mary Hotel while still having enough money left to enjoy the rest of the city.
Includes many versions. The parking lots of the ploppables are transit enabled for a street connection. Please read the readme for full details.
* * *
Mary Hotel (Growable)
CS§§ 320 jobs.
Contains: 2x2 and 2x3 (corner) lots.
* * *
Mary Hotel (Ploppable)
CS§§ 320 jobs.
Contains: 2x3 corner lot.
Plop Cost: §72,000
* * *
Mary Hotel (Growable)
CS§§§ 258 jobs.
Contains: 2x2 and 2x3 (corner) lots.
* * *
Mary Hotel (Ploppable)
CS§§§ 258 jobs.
Contains: 2x3 corner lot.
Plop Cost: §72,000
* * *
Mary Hotel (Landmark)
Contains: 2x3 corner lot.
Plop Cost: §60,000
* * *
Mary Arms (Growable)
R§§ 520 residents.
Contains: 2x2 and 2x3 (corner) lots.
* * *
Mary Arms (Growable)
R§§§ 264 residents
Contains: 2x2 and 2x3 (corner) lot.
* * *
**BAT by: Jasoncw
Modding by: T Wrecks**
*[Click here for discussion of new and current projects by Jasoncw](https://www.simtropolis.com/forum/messageview.cfm?catid=37&threadid=68271&enterthread=y)*
author: Jasoncw
website: https://community.simtropolis.com/files/file/14502-mary-hotel/
images:
- https://www.simtropolis.com/objects/screens/0009/4b79a42593afcb3ea4f3cc7d3717eef2-batframe8.jpg
- https://www.simtropolis.com/objects/screens/0009/4b79a42593afcb3ea4f3cc7d3717eef2-batframe9.jpg
assets:
- assetId: jasoncw-mary-hotel

---
assetId: jasoncw-mary-hotel
version: "1.0"
lastModified: "2005-12-28T16:41:40Z"
url: https://community.simtropolis.com/files/file/14502-mary-hotel/?do=download&r=36299
49 changes: 49 additions & 0 deletions src/yaml/jasoncw/15007-fisk-insurance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
group: jasoncw
name: fisk-insurance
version: "1.0"
subfolder: 300-commercial
info:
summary: Fisk Insurance
description: |-
Fisk Insurance can insure just about anything, but for a price, of course. And now they're expanding their business into smaller cities, with this smaller office building. Let Fisk Insurance come to your city to provide the services that your citizens demand.
This is a smaller version of the Maxis Fisk Insurance.
Several measures have been taken to prevent this lot from growing too much, but if it still grows too much, there are more stategies outlined in the readme, as well as more information about the lots in general.
* * *
Fisk Insurance (Growable)CO§§ 85 jobs.
Contains: 2x1 lot.
Zoning: Grows on medium density commercial only.
* * *
Fisk Insurance (Ploppable)CO§§ 85 jobs.
Contains: 2x1 lot.
Plop Cost: §15,000
* * *
**BAT by: Jasoncw****Modding by: T Wrecks**
*[Click here for discussion of new and current projects by Jasoncw](https://www.simtropolis.com/forum/messageview.cfm?catid=37&threadid=68271&enterthread=y)*
[](../idealbb/view.asp?topicID=68271)
author: Jasoncw
website: https://community.simtropolis.com/files/file/15007-fisk-insurance/
images:
- https://www.simtropolis.com/objects/screens/0015/80e7e73bdc9daa60baf04930b8e5d9fb-batframe13new.jpg
- https://www.simtropolis.com/objects/screens/0015/80e7e73bdc9daa60baf04930b8e5d9fb-batframe12new.jpg
assets:
- assetId: jasoncw-fisk-insurance

---
assetId: jasoncw-fisk-insurance
version: "1.0"
lastModified: "2006-02-11T18:15:37Z"
url: https://community.simtropolis.com/files/file/15007-fisk-insurance/?do=download&r=36927
Loading

0 comments on commit 3975bd6

Please sign in to comment.