• 0 Posts
  • 27 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle




  • rand() generates a number from 0 to a constant defined in stdlib, which usually corresponds to the architechture of your compiler. So, for 32 bit systems (assuming all the software in the line is 32 bit, too) it will be 2^31-1 = 2 147 483 647, as 1 bit in integers is reserved for negative numbers and 1 number is 0.

    Though, by design it is guaranteed to be at least 32767, which is a value for 16 bit integers.







  • MOBA as a genre didn’t come from WC3. There were quite a lot of predecessors to DotA, both in WC3 itself and in first StarCraft, namely Aeon of Strife is believed to be the first popular MOBA custom map out there.

    Blizzard didn’t decide that quirks of WC3 engine are dumb. Yes, they wanted to make a simpler MOBA, but the main reason for lack of funny stuff from WC3 is that they used Galaxy engine for the game, the same one StarCraft 2 was built upon.

    And HotS feels less complex not because of Galaxy’s vs WC3’s quirks (the former has plenty, too), but because of lack of gold and shop, shared experience and an actual tutorial at the beginning of the game.





  • As far as I know, Minecraft itself is avaliable for download publicly, you don’t even need to patch it to play. You just need to supply it some fake account data and tell it to work offline.

    No official servers support, of course, but that’s about it.

    The funny thing is, this mechanism came from Mojang, and at this point they can’t even do anything about it. If they stop providing downloads without an account or implement some anti-piracy features, people will just use the latest official version and mod it. And it may be not even the latest one, there are tons of players on 1.7.10 and 1.12.2, just because modders love them.

    Sure, they can try and push their Bedrock version… But nobody is playing on that piece of crap.



  • I assume it creates some sort of save file in the current working directory?

    You may try changing the working directory via batch script, if you’re on Windows.

    Make a text file, name it something like launch.bat (the actual name may be whatever you want, just make sure you leave the extention .bat) Paste this there:

    @echo off
    cd /d "%~dp0"
    start "" "game.exe"
    

    Be sure to replace game.exe with your game’s .exe filename. Don’t delete any double quotes, they are important.

    Put this text file near .exe file of your game, and make a shortcut of it to your desktop. You may rename a shortcut and choose an icon from your game’s .exe file to make it pretty.

    After that just launch the shortcut as you normally would. If I’m correct, the game should create it’s .bin file in the script directory and not in your desktop.