Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 OS Simulation
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Submissions
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
z_cross_fire




PostPosted: Mon Jun 27, 2011 8:45 pm   Post subject: OS Simulation

I just thought about sharing my computer science final project (from last year) which was made in Vb 2008. The program is a simulation of an OS. Since I had nothing to do now, I just pulled this out, made a few changes, and uploaded it.
Also, if you find any bugs or problems, just tell me and I will be happy to fix them. I know there are a lot of bugs in some parts of the program (just need to make a to-do list Wink ).

Try it out, and tell me what you think.
Very Happy
Sponsor
Sponsor
Sponsor
sponsor
mirhagk




PostPosted: Mon Jun 27, 2011 9:22 pm   Post subject: RE:OS Simulation

not bad, actually pretty nifty, I wanna know how you did that text to voice thing though.
ProgrammingFun




PostPosted: Mon Jun 27, 2011 9:30 pm   Post subject: Re: OS Simulation

Pretty good simulation!
Problems:
    Guess Number doesn't work
    What is the Admin Password?
    The GUI looks a little old (doesn't it)
    The exiting dialog box disappears

Other than that, I enjoyed the program Very Happy
...looking forward to updates.
mirhagk




PostPosted: Mon Jun 27, 2011 9:38 pm   Post subject: RE:OS Simulation

I've actually always wanted to create a pseudo-OS like this, in XNA using circle menus (which have been proven to be both faster and more accurate)

Then the OS could be used on the Xbox360, and I wanted to even throw in a code interpreter so that people could install applications in this OS.
z_cross_fire




PostPosted: Mon Jun 27, 2011 11:28 pm   Post subject: Re: RE:OS Simulation

mirhagk @ Mon Jun 27, 2011 9:22 pm wrote:
not bad, actually pretty nifty, I wanna know how you did that text to voice thing though.


Thank you; and here's the text-to-speech code similar to the "Speak" button:

VisualBASIC:

Dim speech As System.Object

speech = CreateObject("sapi.spvoice")
speech.speak("Hi, Mirhagk!")          'Speaking the text...


ProgrammingFun @ Mon Jun 27, 2011 9:30 pm wrote:
Pretty good simulation!

Much appreciated!

ProgrammingFun @ Mon Jun 27, 2011 9:30 pm wrote:
Pretty good simulation!
Problems:
    Guess Number doesn't work
    What is the Admin Password?
    The GUI looks a little old (doesn't it)
    The exiting dialog box disappears



- Could you tell me what specific part of "Guess No." does not work?
- Hehe, it's for me to know, and for you to find out. Razz
- Yes, I agree. The interface kinda looks dull, but I couldn't have done much about it because of time constraints. (We only got about a month to work on our final projects...) And, changing it now would be a lot of work, considering that I have not used VB for almost a year.
- Could you further explain that?

Happy to know you liked it! I'll try my best to see what I can do in terms of updates Very Happy

P.S. Admins can have access to all the unlocked items. But, I want you guys to actually find the unlockables.

mirhagk @ Mon Jun 27, 2011 9:38 pm wrote:
I've actually always wanted to create a pseudo-OS like this, in XNA using circle menus (which have been proven to be both faster and more accurate)
Then the OS could be used on the Xbox360, and I wanted to even throw in a code interpreter so that people could install applications in this OS.


Why don't you make one then? I'll be the first person waiting to try it Very Happy
ProgrammingFun




PostPosted: Tue Jun 28, 2011 6:55 am   Post subject: Re: RE:OS Simulation

z_cross_fire @ Mon Jun 27, 2011 11:28 pm wrote:

- Could you tell me what specific part of "Guess No." does not work?
- Hehe, it's for me to know, and for you to find out. Razz
- Yes, I agree. The interface kinda looks dull, but I couldn't have done much about it because of time constraints. (We only got about a month to work on our final projects...) And, changing it now would be a lot of work, considering that I have not used VB for almost a year.
- Could you further explain that?

- It doesn't work at all for me:
Quote:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualBasic.PowerPacks.Vs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at ??g?____OS.frmGuessNumber.InitializeComponent()
at ??g?____OS.frmGuessNumber..ctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

--- End of inner exception stack trace ---
at ??g?____OS.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at ??g?____OS.My.MyProject.MyForms.get_frmGuessNumber()
at ??g?____OS.frmGames.lblGameOf21_Click(Object sender, EventArgs e) in C:\Users\Owner\Desktop\Mod-Bogus\??g?? - OS_Deepak Parpyani\??g?? - OS_Deepak Parpyani\frmGames.vb:line 114
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3620 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
??g?? - OS
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/owner/Desktop/Bogus%20-%20OS/%DF%D8g%B5%A7%20-%20OS.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

- I tried checking some text files for the password but grew bored Razz
-As for the dialog box, it just flashes several times when asking to exit so I can see OK and Cancel but not the text itself (probably an issue on my end though)
mirhagk




PostPosted: Tue Jun 28, 2011 11:35 am   Post subject: Re: RE:OS Simulation

z_cross_fire @ Mon Jun 27, 2011 11:28 pm wrote:
Why don't you make one then? I'll be the first person waiting to try it Very Happy

I'm actually going on vacation right now, but I have created a scripted assembly-like lagnague and I am just working on a GUI now.
z_cross_fire




PostPosted: Tue Jun 28, 2011 12:28 pm   Post subject: Re: RE:OS Simulation

ProgrammingFun @ Tue Jun 28, 2011 6:55 am wrote:

Quote:

System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=9.0.0.0



Gotcha! It probably cannot load some part of the form. Microsoft.VisualBasic.PowerPacks --> The only one for this I have on the form is a dotted line. I'm gonna delete it, and then create an update.

ProgrammingFun @ Tue Jun 28, 2011 6:55 am wrote:

- I tried checking some text files for the password but grew bored Razz

The pass isn't stored inside any file. It is built into the program Razz

ProgrammingFun @ Tue Jun 28, 2011 6:55 am wrote:

-As for the dialog box, it just flashes several times when asking to exit so I can see OK and Cancel but not the text itself (probably an issue on my end though)

I would like to know if any other people get this too.

http://compsci.webuda.com/bogusShutDown.png
Do you mean this dialog box?

mirhagk @ Tue Jun 28, 2011 11:35 am wrote:
I'm actually going on vacation right now, but I have created a scripted assembly-like lagnague and I am just working on a GUI now.

Sweet! Tell us when you are done! Very Happy
Sponsor
Sponsor
Sponsor
sponsor
ProgrammingFun




PostPosted: Tue Jun 28, 2011 5:42 pm   Post subject: Re: RE:OS Simulation

z_cross_fire @ Tue Jun 28, 2011 12:28 pm wrote:

Gotcha! It probably cannot load some part of the form. Microsoft.VisualBasic.PowerPacks --> The only one for this I have on the form is a dotted line. I'm gonna delete it, and then create an update.
That just passed over my head (I don't know VB) but looking forward to the update! Very Happy
z_cross_fire @ Tue Jun 28, 2011 12:28 pm wrote:

http://compsci.webuda.com/bogusShutDown.png
Do you mean this dialog box?

Yup, it's only a problem on my old XP computer though Smile
z_cross_fire




PostPosted: Tue Jun 28, 2011 7:59 pm   Post subject: Re: RE:OS Simulation

A small update... Very Happy

- "Guess Number" GUI was slightly modified.
- Updating system modified.
- Online Messaging system modified.
- A small game was added.

Download it from: http://compsci.webuda.com/

For those that have already downloaded the program, it should tell you to update it. Also if you saved any kind of settings, remember to transfer all your old text files.
z_cross_fire




PostPosted: Tue Jun 28, 2011 8:04 pm   Post subject: RE:OS Simulation

Oops....I forgot to make a small change to the version number.
Do this to fix the error after downloading the above update:

Go to...
BOS Files\System Files\Program Files\v.txt
Change the 1 to 2, and save it.
ProgrammingFun




PostPosted: Wed Jun 29, 2011 7:12 am   Post subject: Re: RE:OS Simulation

z_cross_fire @ Tue Jun 28, 2011 8:04 pm wrote:
Oops....I forgot to make a small change to the version number.
Do this to fix the error after downloading the above update:

Go to...
BOS Files\System Files\Program Files\v.txt
Change the 1 to 2, and save it.

I will be waiting for an official patch from the OS making company since I, the general user, am too noob to understand the above (and don't want to get ripped off by some technician) Razz
z_cross_fire




PostPosted: Wed Jun 29, 2011 7:48 pm   Post subject: Re: OS Simulation

Lol, ok. Updated here only, not on the website...
ProgrammingFun




PostPosted: Wed Jun 29, 2011 9:09 pm   Post subject: RE:OS Simulation

It would be cool if your OS could check for, and update itself Wink Laughing
z_cross_fire




PostPosted: Wed Jun 29, 2011 9:17 pm   Post subject: RE:OS Simulation

I am not so good, but I'll still give it a try... Very Happy

Btw, here's two cheats for you (to unlock items):
g2121
btrainer2010
Smile
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 19 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: