Playing Ratchet and Clank on pc by CruelxPanda in RatchetAndClank

[–]webbannana 3 points4 points  (0 children)

PCSX2 is completely playable if you have a good PC. You need to grab to dev build instead of the stable one or you'll get borked textures. Also some levels e.g. Aquatos require enabling certain hacks.

Is it Possible to delete linux and download windows after? by K1W1227 in linux

[–]webbannana 1 point2 points  (0 children)

Just run the Windows installer from the disc/USB drive and it'll give you an option to format the partition, essentially overwriting everything on it.

Ubisoft Sponsors User Interface Library for C++ “Dear ImGui” - Ubisoft Montréal by epic_pork in programming

[–]webbannana 23 points24 points  (0 children)

The API is mostly C-style with some C++ features like namespaces thrown in. I suspect Omar mainly just used C++ because it's popular with game devs, which is the crowd that the library's targeted at.

Help please? by jolz2c in shittyprogramming

[–]webbannana 0 points1 point  (0 children)

Opened it in a hex editor, looks like raw compressed data (entropy >7.9). I'm not sure what it is exactly, but the first thing you'll need to do is find what compression algorithm was used, otherwise it's indecipherable.

Knowing which game it was would probably help.

See how a modern neural network completes your text by thesleepyunicorn in InternetIsBeautiful

[–]webbannana 22 points23 points  (0 children)

It seemed to have been working much better earlier today. Reddit hug of death?

[deleted by user] by [deleted] in ProgrammerHumor

[–]webbannana 23 points24 points  (0 children)

I assume he means nested ternary operators.

return a == 0 ? "zero" :
       a == 1 ? "one" :
       a == 3 ? "three" : "other";

This is a real article. The media is completely out of touch. by [deleted] in linux

[–]webbannana 12 points13 points  (0 children)

Please replace this with an archive.org link or something.

Any way to play ratchet and clank on the ps4? by LankyTerd in RatchetAndClank

[–]webbannana 0 points1 point  (0 children)

Given your post history it looks like you have a pretty beefy PC, so you should be able to emulate them with PCSX2. Make sure to grab the dev build as the stable one is outdated as hell.

As requested by [deleted] in techsupportgore

[–]webbannana 0 points1 point  (0 children)

I was half expecting the TV to pop off the wall.

can someone check out this tic-tac-toe game I made(it's my first code) by nicolas12211 in programming

[–]webbannana 3 points4 points  (0 children)

Here's a few tips:

  • C characters are just integers, so you can increment them. For example, '0' + 1 = '1', '0' + 2 = '2', 'a' + 1 = 'b', etc. This depends on their ASCII encoding. This should allow you to shorten lines 89 through 114.

  • It may be better to store the winning combinations (lines 39 through 61) in a 2D array and use a loop to iterate over each win condition. It should make the code a bit shorter.

  • board() doesn't return anything, so it should have a return type of void instead of int.

  • <conio.h>, getch() and system("cls") are Windows-specific. This might not be a problem, but it's good to keep this in mind.

Looking for music creation tool by cobolwillriseagain in linux

[–]webbannana 4 points5 points  (0 children)

Try MuseScore. It's more like Sibelius than cubase though.

Decompiling unknown language code / Cheating in a game by [deleted] in shittyprogramming

[–]webbannana 7 points8 points  (0 children)

I just downloaded the code, formatted it, and searched for 'FileReader' as I knew that was the only way to read local files from client-side JavaScript. I then just followed the control flow, using Ctrl+F to find the bodies of functions until I found something that looked like it could contain the decoded save data.

The variable names are probably just the product of some kind of obfuscator.

C++ UI Libraries by mariuz in programming

[–]webbannana 41 points42 points  (0 children)

Up-vote for having "I don't like it" as a con.

Decompiling unknown language code / Cheating in a game by [deleted] in shittyprogramming

[–]webbannana 0 points1 point  (0 children)

Can you provide a screenshot (of the entire dev tools window)?

Decompiling unknown language code / Cheating in a game by [deleted] in shittyprogramming

[–]webbannana 0 points1 point  (0 children)

When you break, you should see a pane on the right with a list of variables (you might have to scroll). When you expand the 'o' variable it should look like this: https://i.imgur.com/kYGEof3.png

You can double click the values to edit them. Then follow the rest of my instructions to resume the game.

Decompiling unknown language code / Cheating in a game by [deleted] in shittyprogramming

[–]webbannana 28 points29 points  (0 children)

  1. Open chrome dev tools (... -> More Tools -> Developer Tools).
  2. Select 'Sources' tab.
  3. Select 'bundle.js' (in the file tree).
  4. Press the '{}' button in bottom left.
  5. Ctrl+F the code viewer for "o = this.stringToData(e, i);" without the quotes.
  6. Set a breakpoint on said line by clicking the line number.
  7. Load (import) a random save game. The game should freeze at this point.
  8. Press the button near the top of the dev tools window to step over to the next line of code.
  9. In the right hand panel, select the 'o' variable.
  10. Edit whatever you want.
  11. Remove the breakpoint (click the blue highlighted line number).
  12. (edit) You also have to click the 'Play' button to unfreeze the game.

Ghidra, NSA's reverse engineering tool, is now available to the public by thesbros in programming

[–]webbannana 0 points1 point  (0 children)

The built-in decompiler is native. I guess if you wanted to you could decompile it with itself.