diff --git a/_components/loc.php b/_components/loc.php deleted file mode 100644 index 191cb2e..0000000 --- a/_components/loc.php +++ /dev/null @@ -1,24 +0,0 @@ - "English", - "de" => "Deutsch", -]; - -$lang_code = $_GET["lang"] ?? "en"; -if (!array_key_exists($lang_code, $lang_names)) -{ - $lang_code = "en"; -} - -$data = json_decode(file_get_contents(__DIR__."/../_lang/$lang_code.json"), true); - -function loc($key) -{ - global $data; - $str = $data[$key]; - if (substr($str, 0, 15) == "[UNTRANSLATED] ") - { - $str = substr($str, 15); - } - return $str; -} diff --git a/_components/navbar.php b/_components/navbar.php index a7a5f97..2b21e3f 100644 --- a/_components/navbar.php +++ b/_components/navbar.php @@ -1,46 +1,26 @@ @@ -50,4 +30,10 @@ $path = strtok($_SERVER["REQUEST_URI"], '?'); { elm.onclick = (event) => { event.preventDefault() }; }); + + // User-facing stuff really has no reason to be served over insecure HTTP. + if (location.host == "openwf.io" && location.protocol == "http:") + { + location.protocol = "https:"; + } \ No newline at end of file diff --git a/asset-replacements-guide.php b/asset-replacements-guide.php index 9a3b395..ccc403c 100644 --- a/asset-replacements-guide.php +++ b/asset-replacements-guide.php @@ -1,27 +1,25 @@ - - <?=loc("arep.title");?> + Asset Replacements Guide | OpenWF
-

+

This guide will go through the steps to modify a texture used by Warframe via the OpenWF Bootstrapper.

-
- -

+ Before we start: know what you're replacing. I am going to be using /Lotus/Interface/PolarityPoint.png as an example, which is the icon for the Vazarin polarity.
+ To explore textures, I can recommend using the GUI of Puxtril's Warframe Exporter.

    -
  1. -
  2. -
  3. -
  4. -
  5. -
  6. -
  7. +
  8. Clone warframe-cache-tools.
  9. +
  10. Within your copy of warframe-cache-tools, you can now run pluto extract.pluto /Lotus/Interface/PolarityPoint.png to download & export the texture to the assets folder.
  11. +
  12. Head inside of the assets folder until you find PolarityPoint.png.dds.
  13. +
  14. Open the DDS file inside of a hex editor like HexEd.it or HxD and take note of the format, e.g. you will see the string DXT1 or DXT5 in the 6th row.
  15. +
  16. You are now free to modify the image however you want. Just take care that the file has the same name, dimensions/resolution, and format/encoding as seen before.
  17. +
  18. To build your assets, run pluto build.pluto within the warframe-cache-tools directory.
  19. +
  20. Finally, to get the assets into the game, you can copy the content (managed) folder from warframe-cache-tools into the OpenWF folder of your client. The Bootstrapper will automatically patch the game to use your modified content, and if you ever wanna stop using it, you can simply remove the client's content (managed) folder.
diff --git a/contribute.php b/contribute.php index 51e9024..635f445 100644 --- a/contribute.php +++ b/contribute.php @@ -1,22 +1,20 @@ - - <?=loc("contribute.title");?> + Contributing to OpenWF
-

-

-

-

+

Code

+

Code contributions would be most welcome, especially on SpaceNinjaServer, with many open issues.

+

Translations

+

Most OpenWF software has support for translations:

diff --git a/guide.php b/guide.php index 63430db..ffe4352 100644 --- a/guide.php +++ b/guide.php @@ -1,57 +1,56 @@ - <?=loc("setup.title");?> + OpenWF Setup Guide
-

-

dwmapi.dll', loc("setup.c.simple"));?>

+

Client/Boostrapper

+

To use OpenWF, you only need to download the dwmapi.dll and put it in your game's installation folder (the one where Warframe.x64.exe is in).

-

-

-

+

The DLL is fully documented here, but the most important point is that, while the game is running, you can visit http://localhost:6155/ to manage options, cheats, and scripts.

+

Next steps: By default, the DLL redirects requests to localhost — meaning the same machine you're playing on — so you'll either need to set up a server or change the server_host to point to a different machine that's already got a server running.

+

Server Prerequisites

-

+

Server Installation

    -
  1. -
  2. -
  3. -
  4. -
  5. -
  6. -
  7. -
  8. +
  9. Run git clone https://openwf.io/SpaceNinjaServer.git in a command prompt to download SpaceNinjaServer in the current working directory
  10. +
  11. Open the SpaceNinjaServer folder (cd SpaceNinjaServer)
  12. +
  13. Run copy config.json.example config.json to create a config.json from config.json.example
  14. +
  15. (Optional) Edit the config.json to match your MongoDB settings (if not default) and however else you would like to configure the server
  16. +
  17. (Optional) If you want stripped assets (~622 MiB) which the client will request from the server on-demand (most notably, ability videos), run git clone https://openwf.io/0.git in the static/data folder
  18. +
  19. Run npm install --omit=dev to install library dependencies
  20. +
  21. Run npm run build to build the server
  22. +
  23. Now you can run npm run start to start the server anytime
-

-

+

Server Update

+

Windows users can simply double-click the UPDATE AND START SERVER.bat, but otherwise the steps are pretty simple:

    -
  1. -
  2. -
  3. -
  4. -
  5. +
  6. Run git pull in the SpaceNinjaServer folder
  7. +
  8. (Optional) If you have the stripped assets, run git pull in the static/data/0 folder
  9. +
  10. Run npm install --omit=dev to synchronize library dependencies
  11. +
  12. Run npm run build to build the server
  13. +
  14. Now you can use npm run start to start the server again
-

-

+

IRC Server

+

In addition to SpaceNinjaServer, you can also set up an IRC server for the in-game chat:

diff --git a/import.php b/import.php index 485fb9a..4f57f2b 100644 --- a/import.php +++ b/import.php @@ -1,22 +1,21 @@ - - <?=loc("import.title")?> + Importing Guide | OpenWF
-

-

+

This guide will go over how to get your inventory data from live servers and import it in SpaceNinjaServer.

+

Exporting Your Inventory From Live

-

-

+

Importing Your Inventory To SpaceNinjaServer

+

Now that you have your inventory, open the SpaceNinjaServer WebUI and locate the "Import" tab. You can simply paste the entire thing in the textbox and press the "Submit" button.

diff --git a/index.php b/index.php index ffa6aeb..753195a 100644 --- a/index.php +++ b/index.php @@ -1,27 +1,25 @@ - - <?=loc("about.title");?> + About OpenWF
-

+

OpenWF is a software suite centered around customizing Warframe, including:

- -

+ Get Started +

Preserving Warframe

-
- -

+ A long-term goal of the project is to preserve Warframe after the official servers have shut down, and indeed being able to play any update.
+ Our main focus right now is on staying up-to-date with the game, but there is a DLL + fork of SpaceNinjaServer that can be used to revisit 2013 Warframe. More information about this can be found on our Discord, specifically in this thread.


-

+

Warframe is a registered trademark of Digital Extremes. Its use is for identification purposes only and does not imply any affiliation with or endorsement by Digital Extremes.