Code Monkey home page Code Monkey logo

umap-to-uefn-converter's Introduction

Visitors .github/workflows/deploy.yml

About

This is the source code for the UMAP to UEFN converter that I have created. With it you can convert .json versions of .umap files into a format that can be copy-pasted into UEFN. To get .json versions of .umap files use FModel.

DISCLAIMER

When converting .umaps like this the probability of them validating in UEFN is extremly low because it uses assets from the game itself, instead of the ones available in UEFN.

Dev Corner

This website was writting in mostly TypeScript, React, as well as React-Router for the routing.

Feedback

If you have any feedback, please open up a new issue.

License

GNU Affero General Public License v3.0

Authors

umap-to-uefn-converter's People

Contributors

its4nik avatar senseiusagi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

umap-to-uefn-converter's Issues

TypeError when converting Chapter 3 JSON

Describe the bug
When uploading a json map from chapter 3 the error "TypeError: Cannot read properties of undefined (reading 'includes')" comes up.

To Reproduce
Steps to reproduce the behavior:

  1. Upload json from Chapter 3
  2. Press convert

Expected behavior
No error popup shows up

Screenshots
grafik

Additional context
I think some path string was undefined when it shouldnt have been. Needs investigation.
Problem discovered and json files provided by KPM (kpmisparrot) on discord
Json files to test with:

Artemis_1x1_Ruins_01.json
Artemis_1x1_Ruins_Tower_01.json
Artemis_15x15_LaunchSite_Hatches_01.json
Artemis_POI_MovieScreen.json
Artemis_Poi_SummerCamp.json
Artemis_15x15_GasStation_01.json
Artemis_1x1_BeachShack_01.json

Use Error Model when critical convertion error

Is your feature request related to a problem? Please describe.
Popup isnt enough when an error occurs durring convertion

Describe the solution you'd like
Will use a proper model with more details (and also instructions to report the bugs here)

Additional context
Want to help people more easily when a convertion bug is happening instead of them having to wait for me to fix it

Settings & Help tabs not visible on mobile

Describe the bug
The Settings & Help tabs are not visible on mobile.

To Reproduce
Open the website on mobile

Expected behavior
Can click on every tab

Screenshots
None

Smartphone (please complete the following information):

  • Device: iPhone 12
  • OS: iOS 16.6.1
  • Browser Safari

Additional context
Change it to a burger icon with dropdown list when reaching mobile size

Some UMaps from Chapter 5 Season 3 will not be convertible

Some UMaps from Chapter 5 Season 3 are not converted when you select and give an error, mostly it's the ones with the POIs in them.

I will also include one or two UMaps for you to test

1YLDBOB18TC6JZQU89GJVHE0W.json
2QGNO52XD97ZZGVB3BHHMVGN8.json
5HRG0S8E52BPP3LNJMBQHCSQE.json
5JSG6THXPINELJY5B7V9QQELK.json
8AA14EEU0SJZ0PHG0MUTDD1Y6.json
9KTWUA930QIS8561114VO659O.json
9Q4V4FDWD6SGZJ7CSPD4BI468.json
591GRPNWCJ9WVOC11TSXQWY1K.json

And here is the error code that is output when converting
Screenshot 2024-07-11 153953

Levels inside level also converting

So in some umap files they use other levels (such as a poi using buildings) and since you can't access the game files on a website I was thinking you could add a dialog that opens when you press the convert button that asks for the other levels in the uploaded umap. Since you can't really use levels if you want to use it in UEFN I was also thinking you could use a FortPlaysetRoot (what prefabs use) to sort of separate the levels and position them correctly. One last thing you could do is instead of putting things in a folder you could use the FortPlaysetRoot so you are able to move it around without messing things like walls or floors up.

Better styling

Better styling of the page
I am not quite happy with the styling for now, thats why i am proposing some changes.

Describe the solution you'd like

  • Make the UX smoother, more css transitions, for a better feeling when navigating

  • Dark Mode feature

  • Maybe themes which will be saved using javascripts local data(?)

I would try to implement the changes and open a pull request as soon as i am ready :)

Add info about Layer 8 Problem after downloading

Add extra Info block in the help section about how you import converted maps into uefn (because layer 8 problem).
Something like:

"How do I get a converted map into UEFN?"
"You copy the content of the converted .txt and then in UEFN paste it (its recommended to do this in an empty level)"

Script does not enable mirrored as "True".

Description
When the script converts the Json file into a pasteable .txt file, instead of changing a BP's mirrored function to "True", it simply sets the scale to -1. This would be fine, however it causes doors to open in strange ways. The fix to this in UEFN is just to enable mirrored, which causes them to open normally again.

To Reproduce

  1. Go to fmodel and find a umap you wish to convert.
  2. Save the json and put it in the converter.
  3. Go back to the Fmodel umap and search up "Mirrored"
  4. Find the display name of the actor, it will be nearby the "Mirrored" thing, next to "Name", copy the display name.
  5. Go to the converted .txt file and search that name, you'll find that there is no "Mirrored: True" section, only scale -1.
  6. Bonus, find a door with the scale of -1, (Not mirrored) go ingame and open the door, and you'll see how it opens weird. Then open a door that has "Mirrored" enabled, you will see it opens normally.

Expected behavior
At first I thought it was an Epic issue, as they have sometimes set the scale to -1 instead of mirroring, however I found out that the script simply doesn't have anything to enable "Mirror", I expected it to do that when converting.

Screenshots
Screenshot 2024-07-11 090220
Screenshot 2024-07-11 090146

^ ^ Here are two screenshots of the same actor, one in the original UMAP Json showing Mirrored: True, and another in the converted script txt.

Additional context
None.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.