spelunky-fyi / playlunky Goto Github PK
View Code? Open in Web Editor NEWExtended Mod Management for Spelunky 2 via dll injection
License: MIT License
Extended Mod Management for Spelunky 2 via dll injection
License: MIT License
Everytime I try to run Playlunky it seems to always launch through discord. I'm able to tell because I'm not able to open the steam overlay, nor does it say I'm playing Spelunky on Steam, and it also has a Discord icon next to my name when I try to play online.
The issue started when I added Spelunky to my registered games on discord. It worked fine at first because I did that during the time I was playing it, however the next time I launched Playlunky, it would only launch through Discord.
I don't think it's related to any of the mods I currently have, I think the problem may stem from the discord_game_sdk.dll file that's in my folder. When I try to launch Playlunky or vanilla Spelunky with the discord_game_sdk.dll file deleted, Playlunky gives me the error that discord_game_sdk.dll was not found, while Spelunky just won't launch without it.
I've checked that it is reading the correct Spelunky installation.
So i made a mod that changes hud.png using json file, it just replaces some hud items with one transparent pixel from my png file. Playing the mod works fine, but then when i play with the mod turn off (modlunky2), the items are still invisible, the mod is not active as it does more stuff that are not present. Clearing the cache solves the problem.
the mode if needed: https://spelunky.fyi/mods/m/item-sprites-randomizer/
I'm just getting default stickers in 0.6.x with a bunch of generic character mods that showed generated stickers properly in 0.5.10.
First it happens on linux, so i went to windows to find that its happening here to! the title says it all. when ever everyone dies in online mode. the game crashes when trying to start over. i dont know how it happens but its annoying to continuosly open the game back up every time we lose in online
Possibly these could just be added to the end (maybe under a custom section) of the _hashed files so they can be changed in _mod files.
Game version: 1.27
Wine version: 6.13
Playlunky: Nightly version from Oct 9th (playlunky_nightly_33E9D4A.zip)
I'll start by saying I know Linux is not officially supported. But I figured I'd report anyway in case it might be a simple fix.
~/.steam/steam/steamapps/common/Spelunky 2/
)my-test-mod
inside Mods/Packs/
, and add it to load_order.txt
.For me, here, the game sits at a healthy 5.7% memory usage. (monitored via htop
)
my-test-mod
, place an empty file called main.lua
.For me, here, the game starts at 5.9% memory usage and increases at a rate of approx 1% per minute (that's about 188MB/min) even if I just sit and stare at the start screen (no inputs, no changes).
After about an hour of gameplay, the game will run out of available memory and the OS starts swapping or crashes.
When I click play on Playlunky, it doesn't work for any version I try, and Overlunky doesn't link with my regular Spelunky 2 anymore, is there a reason for this?
Using hardcoded strings prevent the ability to alter the launch file names. I'm hoping to try something similar to what can be done with the stardew modding api to make it compatible for pc gamepass. The basics are your rename the base executable to something you know then rename the play_launcher.exe to Spel2.exe. This will allow the gamepass application to launch the renamed play_launcher (i have validated this works for launching it, it just crashes due to not finding spel2.exe). if i could tell play_launcher what exe is the original spelunky2 it should be able to chain.... i think. If it does work then we should be able to use mods with the gamepass/windows version of the game.
The Mod Options panel has no visible scroll bar, even if the options extend past the bottom of the panel. This happens with script mods with a lot of options, such as Randomizer. Scrolling with the mouse wheel still works.
I believe this is being caused by the combination flag ImGuiWindowFlags_NoDecoration
on the ImGui window:
Playlunky/source/playlunky/mod/mod_manager.cpp
Lines 1026 to 1029 in 08628db
NoTitleBar
, NoResize
, and NoCollapse
are already explicitly set on the window, so all it serves to do is add NoScrollbar
.Some entity sprites crash the sprite merger if the wrong parts are empty, like the head icon thingy on percy_v2 and other pets. This is not very good for testing unfinished mods.
Thoughts from Discord:
Solutions:
I tried to undo the premultiplication and then load the textures again in PL https://imgur.com/a/Z4ToeAS
I extracted the divided textures with this modification but nothing looks quite right either way...
def dds_to_png(data):
"""Takes a .DDS `Image` and returns .png data."""
img = Image.open(io.BytesIO(data))
px = img.load()
width, height = img.size
for i in range(width):
for j in range(height):
if px[i, j][3] != 0:
R = int(255.0 * px[i, j][0] / px[i, j][3] + 0.5)
G = int(255.0 * px[i, j][1] / px[i, j][3] + 0.5)
B = int(255.0 * px[i, j][2] / px[i, j][3] + 0.5)
a = px[i, j][3]
px[i, j] = (R, G, B, a)
new_data = io.BytesIO()
img.save(new_data, format="PNG")
return new_data.getvalue()
Originally posted by @Dregu in spelunky-fyi/modlunky2#304 (comment)
A lot of editors and therefore character mods use transparent as rgba(255,255,255,0), although the game and presumably playlunky expect rgba(0,0,0,0). This causes the sticker generator to put all white squares instead of characters in the quick select etc... You should make sure all transparent or near transparent pixels are converted to black or weird things happen.
Also the custom tile positions (8x14 and 8x15, presumably 0-indexed XxY) for sticker and journal graphics make no sense. I assume you meant the two-or-so tiles to the right of petting, but currently they're both using 8x14, journal just using a larger area of it. 8x15 is not even possible. Exact pixel coordinates would be nice.
The bottom right corner seems to be one pixel too low and to the right. This is usually covered by drawing the next square, but can be seen in some places...
The application was unable to start correctly (0xc0000142).
This blocks e.g. having a git repository in your mod.
The game has been updated as up January 19th and Playlunky 2 no longer launches. It appears some memory strings it is looking for have changed.
spelunky.log
No idea what I'm doing, so I could just have done something wrong. All I did was download modlunky 2, put it in the spelunky 2 folder, and run it. The Playlunky tab won't load and this is the error message
2022-08-31 17:18:06,126: Failed to register tab Level Editor: Traceback (most recent call last):
File "modlunky2\ui__init.py", line 429, in register_tab
File "modlunky2\ui\levels\tab.py", line 86, in init__
TypeError: unsupported operand type(s) for /: 'NoneType' and 'str'
Doesn't work at all if you drag a zip from outside the game folder, like Downloads, even if the installer is in the game folder. ("Not running from game folder...")
It also flattens the directory structure when unzipping, breaking anything more advanced in the process.
Just remove the whole thing, cause nobody even knows it exists and modlunky actually works.
Essentially if you use draw_text_size
outside of any callback or in ON.LOAD
callback, it will return some garbage
this seams to be only PL issue as it loads the scripts as soon as the game starts (i think?)
could be also OL thing if you use the on start script loading, but i dint test it
I recently tried checking something and noticed that Hundun seemed slow. In this video:
theme_start
, then detachplaylunky_nightly_C0C88C3.zip
released at 2023-01-04T15:53:42ZThis doesn't reproduce with:
Hello.
I want to make a bot but I'm not a C++ programmer, not experienced in DLL injecting, etc. I've googled a lot about all versions of Spelunky, Game Maker, Cheat Engine, etc. but found nothing usable for me.
Is it possible to make a tool that just runs in parallel with a game and continuously (for example N times per second or on events happening) prints the game state (configurable subset of it) to STDOUT? Like the game map, coordinates and speeds of myself and enemies, all the items. So I would just feed it to my bot and then send the key press messages.
Some users reported that soundbank files do not get loaded by Playlunky, aka mods with soundbanks will have to be packed with modlunky.
I haven't investigated this yet, so not sure if it is possible to fix.
When the game is launched through Playlunky, the tiles in transitions don't connect properly. Tiles that are supposed to be 2-tall connections draw only the bottom half twice. Or it could be that a bottom half of a connection tile is being used in random places instead of just with its top half.
when loading a char_character_full via playlunky, everything works as expected, however, autogenerated stickers for other characters no longer work, making me a tad bit confused as to which characters i have installed or not. Thanks for all of your amazing work!
2021-07-15 01:19:40,484: You're using Playlunky against a patched exe. For best results use Playlunky on a vanilla exe
i don't have a vanilla exe how do i use Playlunky without it?
For example, if a mod A replaced strings00.str
, while another mod B ships strings00_mod.str
Playlunky will generate a strings00.str
file in Packs/.db
If the user now deletes mod A they would expect to have Packs/.db/strings00.str
be regenerated from the original strings file. However that file stays untouched and the user witnesses a ghost of mod A.
For the last few days when i launch Playlunky using Modlunky 2 I get the following error:
This version of Spelunky 2 is not supported by playlunky, please update you game or check if there is a new version of Playlunky Available.
Spelunky Version: could not be verified
Supported Version 1.25.2
Press OK to start without Playlunky or Cancel to yolo
If you press Cancel it does not load any mods but the game plays and loads from the steam install:
Mods in use:
Co-op shared Camera
I think this has to do with the Spelunky 2 August Patch?
Is there anything that can be done? My wife and her sister have 900+ hours into the game and play it everyday... but will not play without this mod. I am hoping to fix it soon for them to play.
Thanks all.
This is just a rough backlog on what would be interesting to look at, it's not a guarantee that any of this makes it into Playlunky. The list is in order of priority. Please comment here if you have any other suggestion for features. As soon as someone decides to work on one they should open a separate issue for it and probably make a feature branch, you know, git etiquette..
The list is written from a developer perspective, so might not make sense to a user. Some points might be more fitting for the game-api or meta, but fret not, this is just a random list so it's allowed to contain illogical stuff.
In Review:
Done:
When I try to run "playlunky_installer.exe" nothing happens, even when I run it as administrator I've tried with several versions:
nightly
stable
0.16.1
0.11.0
The problem continues even if I run it with Modlunky or without.
(I use DeepL Traductor so..)
Changing graphics settings when having Overlunky injected crashes the game. It's not clear if this is something to be fixed on Playlunky or Overlunky but some investigation would be good either way.
See spelunky-fyi/overlunky#17 for reference
I'm running into this problem where it keeps telling me "You're using Playlunky against a patched exe. For best results use Playlunky on a vanilla exe." but i've already validated the game files and haven't modded the game files at all. does anyone know how to help?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.