Programming, computers, etc. [Serious]

All things asdf (and anything else)
User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Sat Aug 31, 2013 3:13 am

So it's maybe an int? Cool.

Haskell has a Maybe type.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26130
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Sat Aug 31, 2013 3:01 pm

Nice. This semester we started programming in C, anyone have any tips for me?
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35622
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sat Aug 31, 2013 4:06 pm

i have yet to delve into the wonders of segfaults and pointer errors. i'd like to, one day.
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
ThingerDudes
ASDF Warlord
ASDF Warlord
Posts: 20868
Joined: Sun Apr 12, 2009 4:12 am
Location: close enough.

Re: Programming, computers, etc. [Serious]

Post by ThingerDudes » Sat Aug 31, 2013 5:14 pm

No you don't. It's terrible and stupid. Although I guess you learn to appreciate stuff about modern programming languages and you get a lower level control of stuff it's stupid and terrible nonetheless.
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35622
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sat Aug 31, 2013 10:28 pm

but.. it's blazingly fast, no?
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
ThingerDudes
ASDF Warlord
ASDF Warlord
Posts: 20868
Joined: Sun Apr 12, 2009 4:12 am
Location: close enough.

Re: Programming, computers, etc. [Serious]

Post by ThingerDudes » Sat Aug 31, 2013 11:19 pm

Well...I got really frustrated with it doing some simple school labs (things like making linked lists or binary search trees basic stuff like that) so I can only imagine what would happen if I had to do something more complicated. I suppose it does have its uses but I haven't really had to deal with it.

Oh and the OS course (which was in C) made me hate everything low level forever.
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35622
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sun Sep 01, 2013 11:01 am

I see. Well I guess even the people who have to use c/c++ (for game engines and stuff) use a lot of handy libraries for all the basic stuff.
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Mon Sep 02, 2013 4:09 am

I remember liking C/++. It did get hard to keep track of all the pointers, though...

Yes, it can be faster, but you don't really need it for much more than some libraries that are time/performance sensitive. Then you can glue those libraries together with a scripting language, like Python.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35622
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Thu Sep 26, 2013 1:46 pm

I'm making a new game! :)

it's sort of a space sumo right now. There are two space probes, they use rockets to propel themselves around, and there are some random asteroids. The player who first leaves the play area loses. It takes some getting used to. Right now it's local multiplayer (player 1 using WASD vs. player 2 using arrow keys), but i think online multiplayer will be added soon-ish (i already have a working netcode).
Simple newtonian physics, so far no spinning (sadly), so the bodies all act as points now. Spinning would complicate gameplay, but it's also hard to code, and i'm not exactly a physics professor.

A glorious screenshot:

Image

If you want to play it:

You need to have Java installed. You may already have it, but for security reasons, it's always good to have the latest one.
Here you can check if you have the latest: http://www.java.com/en/download/install ... =jre&try=1

If you have the latest Java, but you don't regularly use web applets (or don't even know what those are), then it's best if you disable the Java plugin in your browser (so that malicious applets won't affect you). (In Firefox: Plugins -> Java platform -> change Always activate to Never activate. In IE: options gear icon thing -> Manage Add-ons, right click anything with Java in its name and select Disable. In other browsers.. figure it out.)

You can download this zip, extract it, and run the JAR file. (any OS)

On Windows, if it doesn't work, try the start.bat file. If that doesn't work either, you may not have Java (or you need to navigate into where Java is installed and start Java from there with a command like: java -jar "somefolder\Spaaaaaaaace a1.jar" depending on where you've extracted the game.)
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26130
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Fri Sep 27, 2013 11:27 pm

Awesome! Couldn't get it to work on Ubuntu for some reason, but I'll try on Windows later.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35622
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sat Sep 28, 2013 12:33 pm

I just tried it on an Ubuntu 12.04 LTS virtual machine, it worked fine. All I had to do is right click the Jar file, select Properties, Open With, and select the "OpenJDK Java 7 Runtime" from the list, and make it default. After that, it started on double click. (The "allow executing file as program" option was already ticked in under the Permissions tab, it was greyed out, but that can be set via something like "sudo chmod 777 filename" if I remember correctly.)

If you don't have OpenJDK Java 7 Runtime under the open with tab, go into the ubuntu software center, search for it and install.
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35622
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Thu Oct 03, 2013 10:20 pm

Double poast because yeah!

New version! :D I know nobody has played it yet but oh well.

Download here.
I've named it Soyuz for now.

changelog:

Alpha 2
  • Added fuel limitation, thrusters only work while you have fuel.
  • Fuel now contributes to mass, using up fuel reduces mass (thus increasing acceleration)
  • When you have very little fuel, the thrust force is reduced (due to reduced pressure)
Alpha 3
  • Fullscreen mode, enabling different resolutions and aspect ratios (Hopefully doesn't look awful on your resolution..) (Ingame quit key: ESC)
  • Main menu with options
  • Options to set the number and size of asteroids
  • Option to set the starting fuel amount
  • Options to set the force of the thrusters (bigger force means more acceleration, but faster fuel consumption too)
  • Option to turn fullscreen mode on or off (this doesn't work properly, messes up mouse location if you switch back to fullscreen, for some reason)
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
ThingerDudes
ASDF Warlord
ASDF Warlord
Posts: 20868
Joined: Sun Apr 12, 2009 4:12 am
Location: close enough.

Re: Programming, computers, etc. [Serious]

Post by ThingerDudes » Fri Oct 04, 2013 3:41 am

The fullscreen mode does not seem to work?
Also the screen extends into my taskbar at the bottom. Would be nice if it was resizable
I don't see the other options you've mentioned.

pls fix thx
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35622
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Fri Oct 04, 2013 9:19 am

will do
soonish
i hope
can you post a screenshot? whats your resolution?

(edit: oh, the rest of the options are under the Local game menu, you can set those things before starting a game.)

Edit:

Link
Fixed some bugs, but I can't do much about the fullscreen thing, java has a method for it, I call it, if it doesn't work, end of story :(
The thing starts in windowed mode now, and if you try to turn fullscreen on and it can't, the window title will say "fullscreen mode not supported". If it doesn't happen, and you're still not in fullscreen, then I have no idea what happened.
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
ThingerDudes
ASDF Warlord
ASDF Warlord
Posts: 20868
Joined: Sun Apr 12, 2009 4:12 am
Location: close enough.

Re: Programming, computers, etc. [Serious]

Post by ThingerDudes » Sat Oct 05, 2013 1:10 am

Resizing the window seems to work now, but the starting size could be smaller

fullscreen mode is still kinda weird

Everything else seems to work ok :D
Attachments
resized window.png
resized window.png (210.43 KiB) Viewed 8401 times
fullscreen mode.png
fullscreen mode.png (115.52 KiB) Viewed 8401 times
window mode.png
window mode.png (74.44 KiB) Viewed 8401 times
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35622
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sat Oct 05, 2013 1:24 pm

Cool.
unfortunately i don't have a non-5:4 monitor to test it on..

it all needs work tho..
there is no rocket equation implemented, don't suppose i'll ever go as deep as crypticsea's rocket builder, but the escape velocity thingy is a little too simplified now. There is a constant escape velocity, that'll start to decrease when the fuel is under 10%, and it will cause the thrust to lessen with it. I have no idea how to do this better without going into gas laws and ugly equations..

Anyway, i'm thinking about adding shooting, but i don't want it to be the same old "shoot me and decrease my HP to 0" thing, more like some kind of damage system (damaging the nozzle could alter its angle and/or its force, damaging the core could cause a fuel leak or the entire thing to fall apart)..
The problem is that if I do something like this, hitting asteroids would need to damage you too, and that would take away the fun of bouncing them back and forth.

In either case, I want to make online multiplayer happen :)
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26130
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Sat Oct 05, 2013 2:39 pm

I installed Oracle Java 7 Runtime and got it running, unfortunately it ends up like this.

Image

Doesn't seem like there's anything I can do to fix it either.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 35622
Joined: Wed May 23, 2007 3:43 pm
Location: green
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sat Oct 05, 2013 5:42 pm

have you tried resizing it?
what's your resolution?
sorry, i'll try to figure out something, i have no idea why is this happening.
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26130
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Wed Oct 09, 2013 5:22 pm

atomtengeralattjaro wrote:have you tried resizing it?
what's your resolution?
sorry, i'll try to figure out something, i have no idea why is this happening.
Yeah, didn't work. 1920x1080. No problem :)
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Thu Oct 17, 2013 8:49 pm

I'll have to try it when I'm on my home computer.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

Post Reply