Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 8 9 [10] 11 12 ... 39

Author Topic: PyLNP 0.14e-pre1 - Cross-platform launcher with graphics pack patching  (Read 316356 times)

Pidgeot

  • Bay Watcher
    • View Profile
Re: PyLNP 0.5 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #135 on: September 21, 2014, 04:50:28 pm »

PyLNP 0.5.2 is out, fixing the Entomb Pets option.

Beautato

  • Bay Watcher
    • View Profile
    • Lazy Newb Pack Linux
Re: PyLNP 0.5 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #136 on: October 11, 2014, 12:10:27 pm »

I am really loving the upgrades you have been making. Thank you for your really great work! I am planning on switching the Linux lnp to PyLNP in a future update. :D

Pidgeot

  • Bay Watcher
    • View Profile
Re: PyLNP 0.5 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #137 on: October 11, 2014, 01:40:03 pm »

Thanks, Beautato!

And speaking of upgrades... PyLNP 0.6 is out! This has been bubbling for a while now, and I think it's about ready to get it out there.

The main change in this version is a fairly large restructuring of code, which opens up new possibilities and hopefully makes it a little easier to extend.

Part of that includes the ability to handle different DF versions differently, e.g. by hiding options that don't exist - for now, at least 40d and up should work; earlier versions may also work, but they are not explicitly handled yet. Additionally, there's also some infrastructure in place to handle variations to the install, such as DFHack and TWBT, as well as the legacy Windows builds, allowing the UI to adapt accordingly.

This system will ilkely be refined a bit further in the future, and most likely I'll even add proper support for even older versions of DF (someone out there is probably still playing 23a).

Additionally, there are various other refinements: DFHack can be disabled from the UI; the launcher is more flexible in its placement relative to Dwarf Fortress, and you can now see which color schemes, embark profiles, etc. are currently installed through a red highlight.

Of course, any questions are welcome, as well as bug reports and feature requests.

I am just going to leave this picture here

Beautato

  • Bay Watcher
    • View Profile
    • Lazy Newb Pack Linux
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #138 on: October 15, 2014, 12:27:34 pm »

I am having some trouble configuring the utilities folders on linux. It auto-detects the .sh / jar files of all the lib jars. Is there a way right now that I can narrow down the listed items that show up in utilities?

screenshot of how it looks without editing code:
 

Pidgeot

  • Bay Watcher
    • View Profile
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #139 on: October 15, 2014, 12:34:08 pm »

I am having some trouble configuring the utilities folders on linux. It auto-detects the .sh / jar files of all the lib jars. Is there a way right now that I can narrow down the listed items that show up in utilities?

In the LNP/Utilites folder, create a new text file named "exclude.txt". Any filename listed in brackets here will be excluded from the list. Example from an old LNP version (I believe it contains everything you need, actually):

Code: [Select]
File Exlcusion List
Any file name inside square brackets will not show up in LNP's utilities list.

SoundSense Exclusions
[soundSense.jar]
[jl1.0.jar]
[mp3spi1.9.4.jar]
[jogg-0.0.7.jar]
[jorbis-0.0.15.jar]
[vorbisspi1.0.3.jar]
[tritonus_share.jar]
[autoUpdater.jar]
[commons-codec-1.4.jar]
[jansi-1.8.jar]

PyLNP also allows you to add files not otherwise detected automatically using a file named include.txt - it follows the same format. This is particularly useful on Linux and OS X, since executable files don't necessarily have a specific extension.

Beautato

  • Bay Watcher
    • View Profile
    • Lazy Newb Pack Linux
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #140 on: October 15, 2014, 12:38:56 pm »

PERFECT! :D thanks I should have realized that. Great work by the way! I am loving the way this LNP interface is so well maintained

Beautato

  • Bay Watcher
    • View Profile
    • Lazy Newb Pack Linux
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #141 on: October 15, 2014, 12:46:05 pm »

Another question :

Specifically about the lists, is there an override to change the display name of the executable in the utilities list?

Pidgeot

  • Bay Watcher
    • View Profile
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #142 on: October 15, 2014, 12:57:08 pm »

Another question :

Specifically about the lists, is there an override to change the display name of the executable in the utilities list?

There are two options in PyLNP.json, hideUtilityPath and hideUtillityExt, which can hide the path and extension, respectively, of the utilities - there's no override beyond that, but hiding both should get you some meaningful names anyway.

Example:
With both options disabled: Dwarf Therapist 21.8\DwarfTherapist.exe
With hidden path: DwarfTherapist.exe
With hidden extension: Dwarf Therapist 21.8\DwarfTherapist
With both options enabled: DwarfTherapist

Beautato

  • Bay Watcher
    • View Profile
    • Lazy Newb Pack Linux
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #143 on: October 15, 2014, 01:15:24 pm »

I am going to be switching the my linux pack to only be using PyLNP for future versions, sent you an invite to the organization i am hosting the package from. :D

Thanks for quick answers. Its really a minor thing right now as there are other more important features but it would be great to allow an editable override for the various lists possibly in a future version.



Pidgeot

  • Bay Watcher
    • View Profile
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #144 on: October 16, 2014, 03:11:20 pm »

Its really a minor thing right now as there are other more important features but it would be great to allow an editable override for the various lists possibly in a future version.

Please add it to the issue tracker as a request, preferably with an idea about how you imagine those overrides should be specified. It's easier to keep track of that way. :)

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #145 on: October 16, 2014, 03:17:10 pm »

Its really a minor thing right now as there are other more important features but it would be great to allow an editable override for the various lists possibly in a future version.

Please add it to the issue tracker as a request, preferably with an idea about how you imagine those overrides should be specified. It's easier to keep track of that way. :)
My guess would be something akin to the include.txt and exclude.txt files

Code: (relabel.txt) [Select]
[soundSense.jar:SoundSense]
[foo_1_03.jar:Foo Manipulator]
[bar-0.0.7.jar:Bar Filter]
[baz_experimental_01.jar:Baz]
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

Pidgeot

  • Bay Watcher
    • View Profile
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #146 on: October 16, 2014, 03:24:58 pm »

My guess would be something akin to the include.txt and exclude.txt files

Code: (relabel.txt) [Select]
[soundSense.jar:SoundSense]
[foo_1_03.jar:Foo Manipulator]
[bar-0.0.7.jar:Bar Filter]
[baz_experimental_01.jar:Baz]

Sure, but what about wildcard support to handle version numbers? Do we want any other information? Should we use a file next to the utility itself instead? Should we use PyLNP.json?

It's stuff like that which isn't a given, and it's easier to keep track of people's wishes by having it on the issue tracker :)

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

Pidgeot

  • Bay Watcher
    • View Profile
Re: PyLNP 0.5 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #148 on: October 18, 2014, 03:41:41 pm »

Tiny walk down memory lane:

Spoiler: "0.21.93.19a" (click to show/hide)
Spoiler: "0.22.123.23a" (click to show/hide)
Spoiler: "0.23.130.23a" (click to show/hide)
Spoiler: "0.27.169.32a" (click to show/hide)
Spoiler: "0.28.181.40d" (click to show/hide)
Spoiler: "0.31.01" (click to show/hide)
Spoiler: "0.34.11" (click to show/hide)
Spoiler: "0.40.13" (click to show/hide)

Yes, this means all DF versions are supported now.

This'll be live in 0.7, which will go up shortly after Toady releases the next DF version.
« Last Edit: October 18, 2014, 06:23:48 pm by Pidgeot »
Logged

kahrkunne

  • Bay Watcher
    • View Profile
Re: PyLNP 0.6 - Cross-platform Lazy Newb Pack port with graphics pack patching
« Reply #149 on: October 23, 2014, 07:23:16 am »

I'm probably just really stupid, but how do I use this?
I have no idea what I'm doing, and the readme isn't really helping either.
Dowloaded the source code, but trying to run it just gives me this error

kahr[python-lnp]>./launch.py
WARNING: LNP folder is missing!
Traceback (most recent call last):
  File "./launch.py", line 11, in <module>
    lnp.PyLNP()
  File "./core/lnp.py", line 66, in __init__
    self.userconfig = JSONConfiguration('PyLNP.user')
  File "./core/json_config.py", line 21, in __init__
    self.data = json.load(open(filename), encoding='utf-8')
  File "/usr/lib/python3.4/json/__init__.py", line 268, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
    raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
Logged
Pages: 1 ... 8 9 [10] 11 12 ... 39