kolos26 / GeoFS-CC_rnav

This script is adding rnav gauges for those cc planes, that originally having them, but it's not included in the game.
MIT License
1 stars 0 forks source link

Discussion #1

Open NVB9ALT opened 1 year ago

NVB9ALT commented 1 year ago

Your Realism Pack fork a) doesn't have an issues tab, and b) is very out of date lol. Anyway... I've been blocked on the wiki for 3 weeks (I think), and I do not have discord, so here I am. If you want, I can link you my Guilded server and we can talk there. I've got one final update I want to push to main.js, then the project is all yours.

kolos26 commented 1 year ago

I don't know this Guilded server. Github will be perfect. I have updated the fork and added a issues tab. I'm already working on the toggle options. And this project won't be mine, it will be ours! If you have any ideas I will try to implement them. (Just as I did with the airbus sound effects.) And I'm looking forward to the final -> next update.

kolos26 commented 1 year ago

I will ask a friend of mine about proxys. Can you please explain your problem, and what you need to be able to run through the proxy?

kolos26 commented 1 year ago

And please also send me what proxy are you using!

NVB9ALT commented 1 year ago

This is a Replit deployment of the Ultraviolet proxy, forked from AriakimTaiyo's repl (which doesn't exist anymore). I've edited (I think) uv.handler.js, to automatically run the bookmarklet console and realism pack. https://replit.com/@CovelJulian/GeoFS-proxy Issue: Doesn't work. There's at least four different ways it breaks, trying to load/run the repl rolls the dice on one of them.

kolos26 commented 1 year ago

For me it says connection is not secure. But for you it must brake sometime later. When was the last time it was running? Were there any browser updates after that,? Last known (= as I noticed ) GeoFs update was on friday the GPS addition. Was this version running? I will look up the possible problems with my fater on the weekend, but we are not sure that we can help. There are just too many environmental dependencies, we can't really reproduce.

NVB9ALT commented 1 year ago

Last time it was running properly was 7-9 days ago, I think. I have no idea. No, as this was before the GPS update.

I'll try and log all the different types of malfunctions, and once it's done I'll show you.

kolos26 commented 1 year ago

Thanks, that might be useful. Can you run the legacy or the beta version through the proxy?

NVB9ALT commented 1 year ago

No, most of the time the proxy website (geofs-proxy.coveljulian.repl.co) doesn't even load lol.

NVB9ALT commented 1 year ago

I heard it wasn't fully up to date, so I deleted the repl and I'm gonna try and get a new deployment from GitHub.

kolos26 commented 1 year ago

That may help, for me it wasn't even load

NVB9ALT commented 1 year ago

Actually it won't run at all, something about ToS violations or some such.

NVB9ALT commented 1 year ago

Do you know a way to run arbitrary JavaScript in an iframe? My idea is to create a website with an iframe of proxied GeoFS, then append the scripts for a console and the Realism Pack to that iframe.

kolos26 commented 1 year ago

try this: document.getElementById("idOfIframe").contentDocument.appendChild(_here comes a <script> tag with the code_) https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentDocument if this don't work try contentWindow under that

And honestly, I have never tried it, I have just googled it up :)

NVB9ALT commented 1 year ago

Oh boy I sure do love the cross-origin policy.

kolos26 commented 1 year ago

Oh boy I sure do love the cross-origin policy.

  1. I created a free Netlify account https://www.netlify.com/
  2. Choosed a Hugo quickstart template
  3. Copied all file to the /static folder
  4. In the /static folder I created a file called _headers This comes into _headers:
    /*
    Access-Control-Allow-Origin: *

    It worked for me! Good luck!

NVB9ALT commented 1 year ago

What files go in /static? The html/js of your website, or do I also need to put all GeoFS files in there?

kolos26 commented 1 year ago

Html and js of the iframe page

kolos26 commented 1 year ago

You need to create it yourself

NVB9ALT commented 1 year ago

Well I added a /static folder to the repo, and put my HTML/JS files in there, but it didn't change anything on the deployed site. Do I need to delete themes/netlify-basic?

kolos26 commented 1 year ago

Have you added _headers too?

NVB9ALT commented 1 year ago

Screen recording 2023-04-10 9.39.50 AM.webm

kolos26 commented 1 year ago

Oh boy I sure do love the cross-origin policy.

  1. I created a free Netlify account https://www.netlify.com/
  2. Choosed a Hugo quickstart template
  3. Copied all file to the /static folder
  4. In the /static folder I created a file called _headers This comes into _headers:
/*
Access-Control-Allow-Origin: *

It worked for me! Good luck!

kolos26 commented 1 year ago

And you need to open On the deploynent the /static/index.htnl

NVB9ALT commented 1 year ago

Adding _headers didn't change anything image

NVB9ALT commented 1 year ago

Set base directory to /static in build settings and it made the deploy fail.

kolos26 commented 1 year ago

Do that setting back, it must work in a different way. https://hypertabs.cc/uv/service/hvtrs8%2F-wuw%2Cggo%2Ffq.aoo%2Feemfq.rhr - this link is broken https://geofs-iframe-ex.netlify.app/static/index.html - open this link after bulid

NVB9ALT commented 1 year ago

The first link works fine for me; you should probably load https://hypertabs.cc before using that link to make sure the proxy runs.

kolos26 commented 1 year ago

it works, but that link throws 404

NVB9ALT commented 1 year ago

then just type in https://geo-fs.com/geofs.php into the url bar of the hypertab. might be interesting to see if the links are different between two users doing the same thing.

NVB9ALT commented 1 year ago

and the second link throws 404 not found, i did re-deploy the site but it didn't fix it

kolos26 commented 1 year ago

I will think on this tommorow, sorry but my brain is off now. Bye Kolos

NVB9ALT commented 1 year ago

You should honestly just make a video demonstrating how you did it earlier

Oh boy I sure do love the cross-origin policy.

  1. I created a free Netlify account https://www.netlify.com/
  2. Choosed a Hugo quickstart template
  3. Copied all file to the /static folder
  4. In the /static folder I created a file called _headers This comes into _headers:
/*
Access-Control-Allow-Origin: *

It worked for me! Good luck!

kolos26 commented 1 year ago

I will make a video of course, but, what about if you simply rename index.html to something else?

NVB9ALT commented 1 year ago

Renamed to main.html, didn't work