Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add random events #92

Merged
merged 17 commits into from
Aug 31, 2022
Merged

Add random events #92

merged 17 commits into from
Aug 31, 2022

Conversation

rizfn
Copy link
Contributor

@rizfn rizfn commented Aug 26, 2022

Navbar errors are present, presumably because terms are missing in SiteTermMap.json

Pages for individual random events don't load (404): I tried to work off what I saw on the buildings pages, but something's probably gone wrong (maybe with an src somewhere?)

Edited convert.js to give us the random events, but the mapping still needs to be done. For now I'm just storing the raw data till we can convert the c# enums to a json map or something

Random events are taken from the 5 json files created by `seed.mjs`, squashed into a single json file, and extracted to lib\collections\randomEvents.json
still WIP, mappings need to be done
Couple of problems:
1. Navbar issues
2. Pages don't load (404)
3. Mapping isn't done yet
@vercel
Copy link

vercel bot commented Aug 26, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
soc-gg ✅ Ready (Inspect) Visit Preview Aug 31, 2022 at 7:23PM (UTC)

@lgtm-com
Copy link

lgtm-com bot commented Aug 26, 2022

This pull request introduces 10 alerts when merging b2ca528 into 961fd4e - view on LGTM.com

new alerts:

  • 10 for Unused variable, import, function or class

@rizfn
Copy link
Contributor Author

rizfn commented Aug 26, 2022

Forgot to add that this is just a draft PR: there are tons of random comments and unused imports in the code.

@lmachens
Copy link
Owner

Good job so far!

I merged main branch in this pull request.

Make sure to check #93 which allows using latest AssetRipper version, but with custom config (See extractor/README.md).
#94 should be helpful to map the types.

I will take a look at the other issues later.

@lgtm-com
Copy link

lgtm-com bot commented Aug 29, 2022

This pull request introduces 10 alerts when merging fbb3ab6 into 998a613 - view on LGTM.com

new alerts:

  • 10 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Aug 29, 2022

This pull request introduces 10 alerts when merging 10fefb0 into 998a613 - view on LGTM.com

new alerts:

  • 10 for Unused variable, import, function or class

@lmachens
Copy link
Owner

The list of random events is displayed correctly now and the 404 is fixed.
I think you can take a look at my commits and continue by adding content to the details page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants