Sphazz / swgmtv-electron

Star Wars Galaxies Mobile Template Viewer built with Electron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SWG Mobile Template Viewer:

Developed by Tyclo of Sentinels Republic

Features

View mobile templates / uniforms for all npcs in the Mod the Galaxy tre files.

Get Started

To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
git clone https://github.com/Sphazz/swgmtv-electron.git
# Go into the repository
cd SR-Launcher
# Install dependencies
npm install
# Run the app
npm start

Note: If you're using Linux Bash for Windows, see this guide or use node from the command prompt.

Building

Commands for building can be found in package.json under scripts. Argument of -p always will publish the build as a release to your repository.

Windows - Public Release

  • Create a Personal Access Token
  • In Windows, set an Environmental variable in PowerShell with the following command, replacing "YOUR_TOKEN" with the token you generated above: [Environment]::SetEnvironmentVariable("GH_TOKEN","YOUR_TOKEN","User") - You may need to restart after running this.
  • npm pack - Pack the applications
  • npm run-script build-win - Build applications and publish draft to release of your applications repo.

Windows - Local Build

  • In package.json - Change "build-win": "build --win --ia32 -p always", to "build-win": "build --win --ia32",
  • npm pack - Pack the applications
  • npm run-script build-win - Build applications and publish draft to release of your applications repo.
  • Inside of the /dist directory should an executable with your application.

Tools Used:

  • Python scripts custom made to make a list of all templates, get the unique templates, create new mobiles, spawn into the world, screenshot and categorize.
  • Core3 to spawn the mobiles.
  • JavaScript to make the viewer.
  • Wrapped into an Electron application because I hate screw system memory.

License

Application

Setup:

  • Download the setup exe.
  • At the SmartScreen prompt, select "More Info" then "Run Anyway."
  • Install.
  • Done.
    • Installs to ~400mb. (Electron is bloat, plus 200mb of images)

Notes:

  • There are 4250 unique templates.
  • Do a blank search to load all templates. (Will contain some duplicates due to the nature of how sorting is set up)
  • Sorting:
    • Ep3/Som/Npe are folders in the mobiles directory
    • Dressed is all templates which start with the "dressed" prefix.
    • Templates which meet these requirements are sorted by the first letter of the template, excluding the prefix/folder.

About

Star Wars Galaxies Mobile Template Viewer built with Electron

License:Creative Commons Zero v1.0 Universal


Languages

Language:CSS 51.2%Language:HTML 29.2%Language:JavaScript 19.6%