SanicBTW / PE-0.3.2-Hotfix-ModComp-Reborn

My old mod compilation updated to the latest version of my engine ft Levi
Apache License 2.0
0 stars 1 forks source link

one other mod #2

Closed fnfporterhi closed 1 year ago

fnfporterhi commented 2 years ago

challenge-edd

only cause i just want to prank my friend with eduardo lol

plus i just love the mod i’m a eduardo fanatic

SanicBTW commented 2 years ago

actually not easy im going to kill myself ive been doing so many fucking ports from lua to haxe im tired of fucking things up and making them harder i hate everything

LEVIXDDLMAO commented 2 years ago

ah

LEVIXDDLMAO commented 2 years ago

tbh i just need it for backgrounds

SanicBTW commented 2 years ago

im gonna try another way of adding songs to the shit

LEVIXDDLMAO commented 2 years ago

ah okay, imma try to make lua to haxe for some cuphead shit

LEVIXDDLMAO commented 2 years ago

since i dont know how

SanicBTW commented 2 years ago

like reading lua is easy if its properly formatted

SanicBTW commented 2 years ago

lets take for example the stage lua from challenge hank folder from the pending folder from the repo

SanicBTW commented 2 years ago
function onCreate()

    makeLuaSprite('city', 'nevada/nevada_city', -600, -100) --the background
        addLuaSprite('city', false);
            setProperty('city.scale.x', getProperty('city.scale.x') + 0.6);
            setProperty('city.scale.y', getProperty('city.scale.y') + 0.2);

    makeLuaSprite('stage', 'nevada/nevada_stage', -400, -220); --the stage where everybody sings!
        addLuaSprite('stage', false);
            setProperty('stage.scale.x', getProperty('stage.scale.x') + 0.6);
            setProperty('stage.scale.y', getProperty('stage.scale.y') + 0.8);

    if not lowQuality then
        makeLuaSprite('foreground', 'nevada/nevada_foreground', -970, -215); --the foreground, aka tent with the word MADNESS on it
            addLuaSprite('foreground', true);
                setProperty('foreground.scale.x', getProperty('foreground.scale.x') + 0.75);
                setProperty('foreground.scale.y', getProperty('foreground.scale.y') + 0.8);

        makeLuaSprite('hill', 'nevada/nevada_hill', -200, 100) --the hill that deimos and sanford occupy.
            addLuaSprite('hill', false);
                setProperty('hill.scale.x', getProperty('hill.scale.x') + 0.8);
                setProperty('hill.scale.y', getProperty('hill.scale.y') + 0.6);
                setLuaSpriteScrollFactor('hill', 0.94, 0.94);
    end
end
LEVIXDDLMAO commented 2 years ago

hm okay

SanicBTW commented 2 years ago

the function onCreate() is executed when the engine calls the lua on the exact time

SanicBTW commented 2 years ago

as the lua file we are currently talking about is a stage then you have to go to playstate and the place where you create stages

LEVIXDDLMAO commented 2 years ago

so would you remove that?

SanicBTW commented 2 years ago

image here

SanicBTW commented 2 years ago

we read the lua file and we analyze it

LEVIXDDLMAO commented 2 years ago

ah i see, so for the makeLuaSprite we would have to rename that?

SanicBTW commented 2 years ago

makeLuaSprite('city', 'nevada/nevada_city', -600, -100) --the background by reading the FunkinLua.hx file (from newer versions) we can guess that makeLuaSprite its creating a sprite so in haxe it would be like this: image

SanicBTW commented 2 years ago

wait

SanicBTW commented 2 years ago

image this is better

LEVIXDDLMAO commented 2 years ago

i see

SanicBTW commented 2 years ago

if we keep reading the lua file we can see that addLuaSprite('city', false); the sprite lua created is being added so thats what the add line does (i forgot what the boolean does there)

LEVIXDDLMAO commented 2 years ago

ah, so ill let you know if i sorta got i, and if you need to fix it

SanicBTW commented 2 years ago

if we keep reading the lua file (even more) we see this image setProperty changes some property from a lua object in this case a sprite, in haxe it would be like this: image

SanicBTW commented 2 years ago

lua is easy if the file you are reading and analyzing is properly formatted and you have a reference of what the functions do (You can open another tab of FunkinLua.hx from your respective Psych Version and search the function throughout the file)

LEVIXDDLMAO commented 2 years ago

okay

LEVIXDDLMAO commented 2 years ago

got this in

SanicBTW commented 2 years ago

you gotta translate it to haxe code

LEVIXDDLMAO commented 2 years ago

ik ik, sorry i hid it so ppl cant get your things,

fnfporterhi commented 2 years ago

ok so wait send me the link of what website you’re using for this. i wanna try this out on my laptop!

fnfporterhi commented 2 years ago

also can you guys use a seperate issue

you’re blowing up my watch

SanicBTW commented 2 years ago

ik ik, sorry i hid it so ppl cant get your things,

password protected remember

SanicBTW commented 2 years ago

also can you guys use a seperate issue

you’re blowing up my watch

sorry bro

LEVIXDDLMAO commented 2 years ago

ah lol, sorry