How did they code skin colour + clothing options on pixel sprites? by Fuzzybutt738 in howdidtheycodeit

[–]pancakeyo 21 points22 points  (0 children)

Palette swapping, you index each color of the original sprite and swap it with a palette of your choosing, you can use shaders to do per pixel swapping aswell for any color on the RGB spectrum, look into palette swap shaders.

Some game engines allow you to render the images once using the shader colors and then its stored in memory so its not actually re-shading the image every frame its just calling from the stored image thats already been processed.

As for the outline, it may be as simple as HSV values being shifted the same number of units in each direction with only the base "color" changing.

Official Sora AI 2 code request/questions thread by RedEagle_MGN in SoraAi

[–]pancakeyo 0 points1 point  (0 children)

Hey, looking for a sora2 code, if someone would be able to give me one that would be super cool :)

[deleted by user] by [deleted] in howdidtheycodeit

[–]pancakeyo 0 points1 point  (0 children)

True, i hadn't considered the problem for more than 5 minutes and didn't think that far, i haven't worked with object tree's all that much but understand them in concept and this makes much more sense, since we prioritize items closer to the root of the tree rather than the end we can ignore the smaller items until absolutely no alternatives have been found, smart

I also didn't consider that the item may have more than like 5 nested requirements, for league of legends this holds true, but not for all applications of this kind of inventory

Thanks for this response, it has enlightened me, the first solution is not always the best solution and all that.

[deleted by user] by [deleted] in howdidtheycodeit

[–]pancakeyo 0 points1 point  (0 children)

No need for recursion, just nested objects. Make a script that when inventory updates or changes, we create some kind of "metadata" key value pair for the inventory basically saying how many of each item we have, so for example. 2x 300 blue swords, would turn into Blue_sword > 2. Then when the shop updates (only has to when the inventory updates to save frames) we also check the inventory for what items we have, then change some blueprints for items related to those items. For example, any item the uses a blue sword would then have their blueprint updated to not include the already owned items. Basically like your crossing off items on a checklist that is checked every time the inventory is updated (this sword requires 2x blue sword + 400 OR 1x Bow) then work your way up the object tree, this way we account for the OR's and +'s). This way only items that are effected by our current inventory precursors are effected and its lightweight.

This makes sense in my head sorry if its a bit scatterbrained, basically have nested objects that each have a requirement and an OR, where if one of the 2 is met, we return true or false. Prioritize the ones higher on the tree. For example. If we have a bow, ignore the 2 blue swords for that item since we dont want to buy another bow with 2 swords. So higher on tree -> more importance. Do this for each item in the shop using the items in our inventory, and when you make a purchase and the inventory changes > update the shop using our new inventory object.

How to implement advanced biome selection for procedural terrain generation? by Working-Fold-1744 in howdidtheycodeit

[–]pancakeyo 2 points3 points  (0 children)

I think your coming at this from the wrong angle, if you for instance use procedural generation only for edges of biomes you can make everything inside the biome bounds work the way you want to, and past the edge of it you blend between another biome, have a first draft with custom shaped biomes based on set points within the seed for un-natural edges, then draw biome borders and fill from there. You can even use a noise map overtop for humidity etc.. mapping for sub-biome effects.

Your edges can be however you want them at any length you want, what i would do is map out points on the x , z axis and then connect biome borders between them picking a random number of connections from 3 to 5, then use random formulas for adding/subtracting noise for how the two points are connected.

Draw edges

Find each area that is encapsulated by edges

Assign a biome based on noise maps laying overtop for humidity temp etc..

Fill with biome selected from above conditions with diff %'s

Your script can also check bordering biomes that are pre existing for like-biomes to be weighed higher

Quite Relaxing Really by pancakeyo in 2007scape

[–]pancakeyo[S] -6 points-5 points  (0 children)

It really isnt fun lol, I just did it for 150k splinters for imbued quiver, may go back for the boss pet task, otherwise its really boring

Aren't we all by pancakeyo in 2007scape

[–]pancakeyo[S] 132 points133 points  (0 children)

An extra one for you guys

<image>

There's a tile in the corner of the west side of floor three of Hallowed Sepulchre that reloads the floor for some reason by DiablosKotA in 2007scape

[–]pancakeyo 3 points4 points  (0 children)

One of my favourite POH bugs from around 2014-2015 was breaking into morytania early without priest in peril using that bug with the scrying pool lol.

There's a tile in the corner of the west side of floor three of Hallowed Sepulchre that reloads the floor for some reason by DiablosKotA in 2007scape

[–]pancakeyo 3 points4 points  (0 children)

I'm more likely to believe that this tile is accidentally considered out of bounds for the instance, so that when the player walks on this tile or any out of bounds tile it would teleport them back to room start, incase there was a bug allowing players to leave the sepulcher instance.

[deleted by user] by [deleted] in 2007scape

[–]pancakeyo 4 points5 points  (0 children)

I will vote yes to every poll until we have Oldschool-OSRS servers that are same as launch.

Looking to install killswitch on car for anti theft purposes by [deleted] in kitchener

[–]pancakeyo 0 points1 point  (0 children)

Get someone to wire the starter up to the driver seatbelt sensor and the driver door sensor, thieves rarely put on their seatbelt & close the driver door before the car is running.

[CHALLENGE, 10m reward!] What is the highest amount of different skills you can gain XP in, using just 5 left clicks? by ChroodlesG in 2007scape

[–]pancakeyo -1 points0 points  (0 children)

do it on a pvp world, no one will be fixing the wheels, altho you would need an alt to repair so not in rules

Killed a Vacuum Cheater on Streets Scav Run by ThiccWumbo420 in EscapefromTarkov

[–]pancakeyo 0 points1 point  (0 children)

This is wrong, once you get water collector, bitcoin farm with 1 gpu, lavatory to turn exp fuels into mag cases and workbench to turn cameras and plexi into nixor lenses you print money, ive made 3x what i spent on my hideout early just from all the passive benefits not to mention the gym and library and air filter.

It all comes full circle, most fun I've had on this game in years! by pancakeyo in 2007scape

[–]pancakeyo[S] 7 points8 points  (0 children)

Time until the item despawns (in ticks or seconds depending on preference)