GithubHelp home page GithubHelp logo

sgg-modding / modimporter Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 5.0 263 KB

Mod importer for SGG's games (To be replaced by SGGMI)

License: MIT License

Python 100.00%
mods hades pyre transistor bastion python sjson lua games modding

modimporter's People

Contributors

andrelouisissa avatar erumi321 avatar estyms avatar museus avatar nbusseneau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

modimporter's Issues

Critical error?

Whenever I try to run modimporter.py it gives me this

Cleaning edits... (if there are issues validate/reinstall files)

Reading mod files...

Mods/ModUtil/modfile.txt
There was a critical error, now attempting to display the error
'Hades.v1.38290'
Traceback (most recent call last):
File "C:\Users\rainb\OneDrive\Desktop\just....normal games\Hades.v1.38290\Hades.v1.38290\Content\modimporter.py", line 752, in
start()
File "C:\Users\rainb\OneDrive\Desktop\just....normal games\Hades.v1.38290\Hades.v1.38290\Content\modimporter.py", line 719, in start
loadmodfile(mod.path.replace("\","/")+"/"+modfile)
File "C:\Users\rainb\OneDrive\Desktop\just....normal games\Hades.v1.38290\Hades.v1.38290\Content\modimporter.py", line 559, in loadmodfile
to = default_to[game]
~~~~~~~~~~^^^^^^
KeyError: 'Hades.v1.38290'
Press ENTER/RETURN to end program...

I attached my folder setup but I don't think that's the problem
Screenshot (65)

Alias for load subcommands

Make putting "Load" before load commands optional, namely the only one
"Load Priority" can just be phrased as "Priority"
Readability is still good, and modfile is to be phased out before load commands get more complicated anyway.

CSV Support failed

CSV doesn't work with modimporter.exe.

--Data--
Modfile:
To "Subtitles/en/Theseus.csv"
CSV "Subtitles/en/Theseus.csv"

Theseus.csv
append
Integrated,Theseus
,0600,Theseus_0600,,,,"Text1"
Integrated,Theseus_,0601,Theseus_0601,,,,"Text2"

Add option to specify game directory

For example if my current directory is /home/user then running 'python somedir/.../Hades/Content/modimporter.py' runs the script inside /home/user instead of the game directory, would be cool to be able to either pass the game directory as an argument (python modimporter.py --dir somedir) or specify it as a variable (GAMEDIR=somedir python modimporter.py)

in case of the variable maybe something like this somewhere at the beginning of the file

gamedir = os.getenv('GAMEDIR')
if gamedir:
    os.chdir(gamedir + "/Content")

:: comment does not work with Import

When parsing modfile, modimporter does not treat the following as a comment:

:: Import "insertpackagehere.lua"

Other comments using :: seem to be working fine, though.

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.