Qbasicnews.com
December 15, 2019, 11:12:48 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: V'GER Challenge  (Read 5862 times)
Mac
Senior Member
**
Posts: 243


WWW
« on: February 02, 2005, 04:37:03 PM »

http://www.network54.com/Forum/273951

Fix program so it doesn't bomb on laptops.
Logged
barok
Na_th_an
*****
Posts: 1727


How about a tasty lead sandwich?


« Reply #1 on: February 02, 2005, 07:13:35 PM »

trying to get people to do your work for you, huh?  You coulda just asked instead of trying to disguise it.
Logged

Jumping Jahoolipers!
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #2 on: February 02, 2005, 07:49:56 PM »

Create a PIF to the executable that forces fullscreen.
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Mac
Senior Member
**
Posts: 243


WWW
« Reply #3 on: February 02, 2005, 08:57:01 PM »

Create a PIF

Interesting. It looks like a PIF on my machine looks like the code below.

Do you think this could be portable to anyone else using the program?

How would you suggest using it? On first call, V'GER creates the appropriate PIF and then terminates so that subsequent calls go there instead?

Have you tried the game yet? Does it work on your computer unmodified?

Mac

Code:

 Microsoft QuickBASIC          € € C:\WINNT\system32\qbasic.exe                                     :\WINNT\system32                                                                                                                 P                                                                                                                                   MICROSOFT PIFEX ‡  qWINDOWS 386 3.0 h €  d 2                     d 2                                                                     WINDOWS 286 3.0 !       WINDOWS NT  3.1 7Œ             %SystemRoot%\SYSTEM32\CONFIG.NT                                 %SystemRoot%\SYSTEM32\AUTOEXEC.NT                               WINDOWS NT  4.0 e Œ    C : \ W I N N T \ s y s t e m 3 2 \ q b a s i c . e x e                                                                                                                                                                                                         C:\WINNT\system32\qbasic.exe                                                                                                                                                                                                                                                                                                                                                    C : \ W I N N T \ s y s t e m 3 2 \ q b a s i c . P I F                                                                                                         C:\WINNT\system32\qbasic.PIF                                                    M i c r o s o f t   Q u i c k B A S I C                     Microsoft QuickBASIC          m o r i c o n s . d l l                                                                                                                                         moricons.dll                                                                      : \ W I N N T \ s y s t e m 3 2                                                                                                :\WINNT\system32                                                                                                                                                                                                                                                                                                                                             WINDOWS VMM 4.0 { 
Logged
Z!re
*/-\*
*****
Posts: 4599


« Reply #4 on: February 02, 2005, 09:46:41 PM »

Just right click the pif, select properties, strip all paths, only leave the filename.

Supply the pif along with the program.


Or have it, like you said, hold the MODIFIED (Path stripped) PIF data in a string in the program, and dump that to a pif file, then tell the user that:
"Setup complete, please restart..."


So whats the prize, and who's the winner...

Because this IS a REAL competition/challenge/contest... right... RIGHT!?
Logged
Mac
Senior Member
**
Posts: 243


WWW
« Reply #5 on: February 02, 2005, 10:39:22 PM »

Well, I always run from the IDE, so I'm having troubles with the PIF concept, as I don't want to change the users QBasic PIF.

But you came the closest to giving some advice I could theoretically use, maybe if I dealt in EXE's.

So you win the hat!

http://msv.dk/filer/uploads/Musikvideo2.swf

Til Lykke!

Mac
Logged
Mac
Senior Member
**
Posts: 243


WWW
?
« Reply #6 on: February 05, 2005, 12:39:53 AM »

Hi, Z!re,

What, you didn't appreciate the hat?

Mac
Logged
Z!re
*/-\*
*****
Posts: 4599


« Reply #7 on: February 05, 2005, 05:33:13 AM »

What hat?

All i saw was random colors, accompanied by random soundwaves. I can't really give you any feedback/comment on that.
Logged
shiftLynx
Wandering Guru
***
Posts: 340



WWW
« Reply #8 on: February 05, 2005, 08:50:08 PM »

If you're running XP or 2000 on that laptop, it probably won't like going to SCREEN 12 because of that. The NTVDM doesn't seem to like changing screen modes.

-shiftLynx
Logged

img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Mac
Senior Member
**
Posts: 243


WWW
« Reply #9 on: February 06, 2005, 12:56:04 AM »

Hi, shiftLynx,

Thanks. I wonder what went wrong with XP. I guess we're lucky they even support DOS emulation at all, much less make it work properly.

Hi, Z!re,

Strange. That link on my computer works fine and gives a funny scene in Swedish slang (translation of Arabic, I guess) where a good-luck hat is passed to the lucky person.

Sorry you couldn't get it to work on your computer.

Mac
Logged
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #10 on: February 06, 2005, 10:12:31 AM »

Quote from: "shiftLynx"
If you're running XP or 2000 on that laptop, it probably won't like going to SCREEN 12 because of that. The NTVDM doesn't seem to like changing screen modes.

-shiftLynx


That depends on the graphics card. In my box, it works seamlessly.

Quote from: "Mac"
Thanks. I wonder what went wrong with XP. I guess we're lucky they even support DOS emulation at all, much less make it work properly.


Nope, it's the contrary. If it had DOS emulation, we would have no problems. But no, it's a virtual machine. That means that everything but system calls are handled by the processor and the hardware themselves. System calls are processed and emulated by Windows, but the rest (a jmp, a simple add or whatever) is done by the microprocessor.

If something for the NTVDM does not work it's (most likely) 'cause your new hardware is not compatible.

Note that, for example, many computers can't run games which use EMS not 'cause of Windows, but 'cause of the computer architecture itself. Install MSDOS on those computers and you won't be able to  use EMS either.

That's what I mean: If Windows XP had a MSDOS emulator, everything inside the box would be emulated thus SVGA, EMS, sound and everything would work, just like in DosBOX, for example. It would work, but slower.

The NTVDM was the "faster way", but as it keeps relying on the actual machine, you get the incompatibilities. It's like trying to run a GWBASIC program that uses CLOAD in a 486. It will send you to Walhalla.
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Mac
Senior Member
**
Posts: 243


WWW
« Reply #11 on: February 06, 2005, 10:26:09 AM »

Hi, na_th_an

Hey, excellent analysis there. Thanks!

So I guess I can forget about making V'GER work on all possible machines. ON TO NEXT PROJECT!

By the way, did you try the hat link I gave Z!re?

Mac
Logged
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #12 on: February 06, 2005, 10:30:47 AM »

Yup, it worked Wink

Btw, I'm pretty sure your code is compilable in freeBASIC, so V'Ger is not dead, I guess Wink
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
aetherfox
Been there, done that
*****
Posts: 1071



WWW
« Reply #13 on: February 06, 2005, 10:41:11 AM »

What the hell kind of challenge is this?

Thats pretty pathetic and sick that you have to disguise your questions like this, Mac.  I am not being insulting or anything, but if I were you, I would be ashamed...are you too egotistical or something to actually ask the question openly instead of making it a..."Challenge"?
Logged

~''i|~thrFx~|i''~-  
avinash.vora - http://www.avinashv.net
Mac
Senior Member
**
Posts: 243


WWW
« Reply #14 on: February 06, 2005, 10:50:57 AM »

Hi, aetherfox

Sorry my post bugged you.

Well, maybe you would like part 1 of the challenge (did you click on the original link?), namely achieve the level of "doing good" and post your best game (on that forum)

It is theoretically possible to get to any given level, but human failings will sooner or later stop you.

Mac
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!