Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: BrownyTCat on May 29, 2011, 09:30:38 pm

Title: [Project] Aperture Laboratories Terminal
Post by: BrownyTCat on May 29, 2011, 09:30:38 pm
I'm working on a C++ program that only needs MS-DOS to run which will going to "emulate" the terminals in Portal. The only part that's actually done right now is a fraction of "Still Alive" too small to release. This program runs anywhere from DOS 5 to Windows 7. It will probably be able to link to other EXEs in the source code in case anyone wants to write an optional component to run inside "Aperture Terminal".

Pseudo-screenie:
Code: [Select]
              .,-:;//;:=,               
          . :H@@@MM@M#H/.,+%;,         
       ,/X+ +M@@M@MM%=,-%HMMM@X/,       
     -+@MM; $M@@MH+-,;XMMMM@MMMM@+-     
    ;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.   
  ,%MM@@MH ,@%=            .---=-=:=,. 
  =@#@@@MX .,              -%HX$$%%%+; 
 =-./@M@M$                  .;@MMMM@MM:
 X@/ -$MM/                    .+MM@@@M$
,@M@H: :@:                    . =X#@@@@-
,@@@MMX, .                    /H- ;@M@M=
.H@@@@M@+,                    %MM+..%#$.
 /MMMM@MMH/.                  XM@MH; =;
  /%+%$XHH@$=              , .H@@@@MX, 
   .=--------.           -%H.,@@@@@MX, 
   .%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%.
     =XMMM@MM@MM#H;,-+HMM@M+ /MMMX=   
       =%@M@M#@$-.=$@MM@@@M; %M%=     
         ,:+$+-,/H#MMMMMMM@= =,       
               =++%%%%+/:-.             
Title: Re: [Project] Aperture Laboratories Terminal
Post by: Juju on May 29, 2011, 09:47:11 pm
Sounds interesting.
Title: Re: [Project] Aperture Laboratories Terminal
Post by: AGVolnutt on May 29, 2011, 09:59:09 pm
We do what we must. Because. We can.
Title: Re: [Project] Aperture Laboratories Terminal
Post by: BrownyTCat on May 29, 2011, 10:00:55 pm
We do what we must. Because. We can.
That's part of the code right now.
Title: Re: [Project] Aperture Laboratories Terminal
Post by: leafy on May 29, 2011, 10:32:43 pm
There's terminals in Portal? You mean the monitors that just scroll garbled cake recipes?
Title: Re: [Project] Aperture Laboratories Terminal
Post by: BrownyTCat on May 29, 2011, 11:07:58 pm
Demo out! No audio.  :-\
Title: Re: [Project] Aperture Laboratories Terminal
Post by: AGVolnutt on May 30, 2011, 12:46:00 am
For the good of all of us.

Except the ones who are dead.

You got the song stuck in my head now. I heard there was a GLaDOS terminal on the web somewhere. An advertaising tool. was it aperturelabortoties.com or something... I dunno. Check the wiki.
Title: Re: [Project] Aperture Laboratories Terminal
Post by: Juju on May 30, 2011, 01:47:44 pm
Oh nice.

Works pretty well in Wine.
Title: Re: [Project] Aperture Laboratories Terminal
Post by: BrownyTCat on May 30, 2011, 05:04:09 pm
For the good of all of us.

Except the ones who are dead.

You got the song stuck in my head now. I heard there was a GLaDOS terminal on the web somewhere. An advertaising tool. was it aperturelabortoties.com or something... I dunno. Check the wiki.
It vanished a few months ago. I'm making one for x86.
Title: Re: [Project] Aperture Laboratories Terminal
Post by: Ashbad on May 30, 2011, 05:05:45 pm
Source, please? :)  I can help spot any optimizations and tricks if you want. ;)
Title: Re: [Project] Aperture Laboratories Terminal
Post by: BrownyTCat on May 30, 2011, 05:06:20 pm
Source, please? :)  I can help spot any optimizations and tricks if you want. ;)
It's minimal right now, there's not really any way to optimize.
Title: Re: [Project] Aperture Laboratories Terminal
Post by: Ashbad on May 30, 2011, 05:06:45 pm
ah, there's always room to optimize XD
Title: Re: [Project] Aperture Laboratories Terminal
Post by: BrownyTCat on May 30, 2011, 05:08:35 pm
ah, there's always room to optimize XD
It only uses cout and _sleep()
Title: Re: [Project] Aperture Laboratories Terminal
Post by: Ashbad on May 30, 2011, 05:14:03 pm
oh :P however, if you're going to us a time delay function, I don't suggest anything found in stdlib.h, as sleep functions can be quite volatile in how they work.  I suggest using something like found in a more sophisticated format -- here is a group of functions that can help attain the same thing, but more reliable (uses stdlib.h and time.h)

Code: [Select]
void wait (int seconds)
{
  clock_t endwait;
  endwait = clock() + seconds * CLOCKS_PER_SEC ;
  while (clock() < endwait) {}
}
Title: Re: [Project] Aperture Laboratories Terminal
Post by: BrownyTCat on May 30, 2011, 06:24:31 pm
Demo 2, with audio! Starts from the beginning this time. Won't fit here though.

Download externally here (http://www.sendspace.com/file/en50fl)!
Title: Re: [Project] Aperture Laboratories Terminal
Post by: BrownyTCat on June 12, 2011, 03:31:01 am
Update: Accidentally lost the demo in a hard drive format, a new version with full terminal capabilities will be up soon, with screenies this time!