

InterviewSolution
Saved Bookmarks
1. |
Solve : Batch Networking? And a cmd line ASCII graphics engine.? |
Answer» Is it possible to do networking with server in batch? And also, imagine a PROGRAM that allows you to load and move ASCII images for cmd line languages and text based programs. Also, for making text based games, and perhaps later games with minor graphics (like, minecraft low graphics) should I use C++, TorqueScript, Java, or make my own language if so possible?Well, now that you bring Minecraft up, I do think that Bukkit servers run using conhost.exe and cmd.exe from a batch file. So to your first question YES? Quote from: Nathansswell on November 28, 2011, 02:35:19 AM Well, now that you bring Minecraft up, I do think that Bukkit servers run using conhost.exe and cmd.exe from a batch file. So to your first question Yes? The batch file in Bukkit contains the following code: Code: [Select]ECHO OFF IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(X86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1024M -jar "craftbukkit-1.0.1-R2-SNAPSHOT.jar" IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xincgc -Xmx1024M -jar "craftbukkit-1.0.1-R2-SNAPSHOT.jar" PAUSE That's just RUNNING the java file and providing a vehicle for you to send and receive text to the server. Quote from: tommyroyall on November 19, 2011, 08:00:02 PM Is it possible to do networking with server in batch?Like a multiplayer game? I don't think that batch is well suited for that. There's one thing that I TRIED, where I set up a website and the batch connected to it using FTP, downloaded a certain text file that contained information, and uploaded its own version of it if that was needed every two seconds. It was pretty effective for a simple chat script, but actually what the batch file did was launch a DoS attack on my website. D: For networking, or a GUI game at all, you'd probably need a better programming language. While we're on the subject of minecraft, minecraft uses java. If you've never learned another programming language, cross C++ right off your list of possibilities. It has DIFFICULT syntax, and something fairly simple requires a large script. |
|