LBPUnion / ProjectLighthouse

Project Lighthouse is a clean-room, open-source custom server for LittleBigPlanet.
GNU Affero General Public License v3.0
209 stars 53 forks source link

LittleBigPlanet PS Vita Custom Skill Rewards #48

Open Arcadius2006 opened 2 years ago

Arcadius2006 commented 2 years ago

Custom Skill Rewards don't show up in the level page or on the level badge

they do work in the levels themselves, giving out prizes, but they don't show the correct requirements

jvyden commented 2 years ago

What are custom skill rewards?

Arcadius2006 commented 2 years ago

Custom Skills Rewards are a feature in Vita that allow you to create custom prizes for doing things such as completing a level with a certain score, in a certain timeframe, or without dying a set amount of times

you can also activate these prizes using logic

idk im not good at explaining you'd have to look at the thing yourself to understand it fully

jvyden commented 2 years ago

@hydronePVP45 can you pull the names of the endpoints for this?

turecross321 commented 2 years ago

Custom Skills Rewards is basically a star system that is exclusive to LBP Vita, and the problem that Arek is reporting is that these do not show up on community level badges. image

Here is a post request of a level with custom skill rewards being published.

<slot type="user"> <name>Star Test example lmao xddddddd</name> <description>Shit</description> <icon>1c636160e366fb6c3aa7cc66eb05db3db17fe197</icon> <rootLevel>b2a8a4a3ebc8a5b8f3d6d79dbbb54387a6619712</rootLevel> <resource>0f51202219d623d7587866ae5ecdac655d1e823d</resource> <resource>2d1ea0ec56800bedc2d48c200b09686345d3c1a4</resource> <resource>39597804f24d64ec01a52c203a675ca93a2922a8</resource> <resource>3a1935843e82876b4998c3815bbddb1c2d83389a</resource> <resource>9daf4036787173b4326a6a827fe075c0daa887c4</resource> <resource>9e9aa2c5110918d3c79d86d82176a64f5bea4688</resource> <resource>9f1e280a5f639fb0330497fa1c53c1e9dec7d1e4</resource> <resource>b2a8a4a3ebc8a5b8f3d6d79dbbb54387a6619712</resource> <resource>c65d03de9e3453820d9b78c8a086e46048ec3cee</resource> <resource>f1f810786e378d1d371ab1e7708e79631446a838</resource> <location> <x>46549</x> <y>6778</y> </location> <initiallyLocked>false</initiallyLocked> <isSubLevel>false</isSubLevel> <isLBP1Only>false</isLBP1Only> <shareable>0</shareable> <background>107262</background> <links> </links> <internalLinks> </internalLinks> <leveltype></leveltype> <minPlayers>1</minPlayers> <maxPlayers>4</maxPlayers> <moveRequired>false</moveRequired> <sizeOfResources>698697</sizeOfResources> <acingEnabled>true</acingEnabled> <containsCollectabubbles>true</containsCollectabubbles> <enforceMinMaxPlayers>false</enforceMinMaxPlayers> <sameScreenGame>true</sameScreenGame> <customRewards> <customReward id="0"> <enabled>true</enabled> <description>Skidbapumbidbada 3 stars</description> <condition>score</condition> <amountNeeded>150.000000</amountNeeded> </customReward> <customReward id="1"> <enabled>true</enabled> <description>Holy duckong sichir oyiu got two stars</description> <condition>score</condition> <amountNeeded>100.000000</amountNeeded> </customReward> <customReward id="2"> <enabled>true</enabled> <description>You got one sar</description> <condition>score</condition> <amountNeeded>50.000000</amountNeeded> </customReward> </customRewards> </slot>

(notice some other things like sizeOfResources and sameScreenGame which haven't been implemented either.)

jvyden commented 2 years ago

Are customReward ids per-level?

turecross321 commented 2 years ago

Not sure, but if I'd have to guess, no. image image image

I think it's just referring to the id in the scoreboard (so 0-2)

jvyden commented 2 years ago

Gotcha. Shouldn't be too hard to implement.

jvyden commented 2 years ago

What other conditions are there other than score? Please provide examples of the XML.

turecross321 commented 2 years ago

<name>Custom Rewards Test</name>
<description></description>
<icon>g10682</icon>
<rootLevel>9b876b8b0e29c7c310352cf16d3b761d196f0dbf</rootLevel>
<resource>9b876b8b0e29c7c310352cf16d3b761d196f0dbf</resource>
<location>
<x>15438</x>
<y>19002</y>
</location>
<initiallyLocked>false</initiallyLocked>
<isSubLevel>false</isSubLevel>
<isLBP1Only>false</isLBP1Only>
<shareable>0</shareable>
<background>107262</background>
<links>
</links>
<internalLinks>
</internalLinks>
<leveltype></leveltype>
<minPlayers>1</minPlayers>
<maxPlayers>4</maxPlayers>
<moveRequired>false</moveRequired>
<sizeOfResources>3805</sizeOfResources>
<acingEnabled>true</acingEnabled>
<containsCollectabubbles>false</containsCollectabubbles>
<enforceMinMaxPlayers>false</enforceMinMaxPlayers>
<sameScreenGame>false</sameScreenGame>
<customRewards>
<customReward id="0">
<enabled>true</enabled>
<description>50 score</description>
<condition>score</condition>
<amountNeeded>5.000000</amountNeeded>
</customReward>
<customReward id="1">
<enabled>true</enabled>
<description>5 lives lost</description>
<condition>lives</condition>
<amountNeeded>5.000000</amountNeeded>
</customReward>
<customReward id="2">
<enabled>true</enabled>
<description>30 second timer</description>
<condition>time</condition>
<amountNeeded>899.999939</amountNeeded>
</customReward>
</customRewards>
</slot>
turecross321 commented 2 years ago

the three conditions are: score, lives and time.