Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old March 18th, 2009   #41 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
can you maybe point me to a good example? most examples i fine do not even do anythign remotely like that so trying to figure it out has always been very tough, methods i have found are flawed at best and are either very slow or do not work right at all.

i will pull the video and see if it works in windows media player or find out why it wont, just give me a bit and i will try to get it fixed.

edit: i re-encoded the video into a wmv file and tested it on wmp 11 but should work on any other version i would think if its version 9+ as its made with the wmv9 codec. its located here: http://fanetworks.net/~swatgod/video/demo.wmv hope it works.

Last edited by Hatorijr; March 18th, 2009 at 14:40.
Hatorijr is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old March 18th, 2009   #42 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
nm i was able to get the dynamic texture method to work, i create a texture and plot the data to it and render it on top of 2 triangles, its really fast now .
Hatorijr is offline   Reply With Quote
Old March 18th, 2009   #43 (permalink)
I love you baby
 
Phil's Avatar
 
Join Date: Oct 2007
Location: Naples Florida
Posts: 9,885
nice, keep up the good work
Phil is offline   Reply With Quote
Old March 19th, 2009   #44 (permalink)
Emu author
 
blueshogun96's Avatar
 
Join Date: Jun 2004
Location: Unidentified
Posts: 2,475
Quote:
Originally Posted by Hatorijr View Post
nm i was able to get the dynamic texture method to work, i create a texture and plot the data to it and render it on top of 2 triangles, its really fast now .
Great! Glad to help a fellow emu author (in some way or another)
__________________

[Sagat] Windows XP x64 Pro | AMD Athlon 3000+ (~2.0GHz) | NVIDIA GeForce 6600 PCI-E | Realtek AC97 Audio | 512MB Ram | NVIDIA NForce 4-4X chipset | Seagate HDD 160GB | LG 8614 DVD-ROM | HP DVD 1040d CD/DVD -/+ RW w/ LightScribe
[Raylene] HP dv2000 | Windows Vista Home Premium | Intel Core2 Duo @2.2GHz | NVIDIA GeForce 8400 GS 128Mb (Dedicated) + 1264Mb (Shared) | 3GB Ram | 220GB HDD


GeneralEmu - December 27, 2005 and beyond!
Shogun3D Interactive (I try to update it every day now)
Shogun's Cxbx Dev Blog
blueshogun96 is offline   Reply With Quote
Old March 19th, 2009   #45 (permalink)
Dax
ライチュウ
 
Dax's Avatar
 
Join Date: Nov 2006
Location: USA
Posts: 3,277
I'll be moving on shortly to Space Invaders myself. Just gotta practice some sort of graphics drawing method in C/C++ for chip8..
Dax is offline   Reply With Quote
Old March 19th, 2009   #46 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
hey dax i would suggest trying to get the method i used to work in c++ which i am sure would not be to hard, it really works great and directx c++ examples are a lot easier to come by .

also thanks blueshogun96 and dax for both mentioning this similar method as it really did work wonders for speed .
Hatorijr is offline   Reply With Quote
Old March 21st, 2009   #47 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
trying to switch the renderer over to directx to make it more friendly for people to get up and running once i release it, but it has a bug where part of a line wont render and unsure as to why, it only happens on menus but while ingame the bug is not there.

i made a debug function that output the current screen to a console window and it shows perfectly fine so its not the way i draw to the texture, and its only part of a line, not the entire line.
Attached Images
File Type: jpg weird.jpg (36.9 KB, 30 views)
Hatorijr is offline   Reply With Quote
Old March 28th, 2009   #48 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
fixed almost everything in space invaders so i can release it soon, only problem left to tackle is that right before the alien is supposed to come out and reverse the upside down y, it crashes from an overflow in the memory, i know where its crashing but as of now not sure why its crashing exactly.

at the point where it gets to the section that causes the crash, the H register pair is already to big and not sure exactly why, if anyone is familiar with space invaders pretty well and may have an idea, i would really appreciate it ^_^.

edit: apparently the memory buffer for space invaders needs to be 0x41B9 bytes instead of 0x4000 bytes for it to get past the crash and to work correctly.

Last edited by Hatorijr; March 31st, 2009 at 13:15.
Hatorijr is offline   Reply With Quote
Old March 31st, 2009   #49 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
i am finally back to say that space invaders works flawlessly now, i will be making another demo video later today to show the full attract mode playing .
Attached Images
File Type: jpg fixed demo.jpg (37.7 KB, 15 views)
Hatorijr is offline   Reply With Quote
Old April 1st, 2009   #50 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
Here it is, my complete space invaders emulator, with support for remapping all controls, configuring the dip switches and also control of the colors used to color the pixels.

This requires managed directx and .net framework 2.0 as the requirements.

have fun and report any errors/bugs you find so i can fix them asap.

Edit: since it is april fools day i am just covering my bases and stating for the record, this is not an april fools day joke .

Last edited by Hatorijr; May 11th, 2009 at 07:42.
Hatorijr is offline   Reply With Quote
Old April 1st, 2009   #51 (permalink)
I love you baby
 
Phil's Avatar
 
Join Date: Oct 2007
Location: Naples Florida
Posts: 9,885
Awesome, ill try it out lol
__________________
Phil is offline   Reply With Quote
Old May 9th, 2009   #52 (permalink)
Dax
ライチュウ
 
Dax's Avatar
 
Join Date: Nov 2006
Location: USA
Posts: 3,277
I figured rather than start another thread for Space Invaders, we could use this thread as our generic Space Invaders thread. I started working a little bit on Space Invaders on Thursday. I've got ROM loading and memory reading and writing done[the most basic stuff, but still needs to be done]. I've almost finished 'decoding' the opcodes in Intel's documents as well, with little trouble, so I think things will be looking up so far. I'll finish Chip8 scrolling at some other point when I'm feeling bold.

Could a moderator perhaps rename this thread to Space Invaders Thread, and sticky it? Hatorijr gave permission to do so.
Dax is offline   Reply With Quote
Old May 11th, 2009   #53 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
Thanks to some advise by mudlord, i made a small change to my video class that fixed the one known crash in my space invaders emulator. I added in error checking for the texture creation so it will not completely crash if it fails to create the texture to draw on.

Edit: Added a restart command to the emu, allowed menus to be opened during execution but all settings will be read-only. A new bug was found today, it seems so far on one pc an issue was found that prevent the emu from loading and using my config file for the emu which would cause a crash on start up. i have put in code to fix the start up issue but a full fix has not been implemented yet. also fixed an issue found by dax where the key bindings changed by the user did not take effect until the emu was restarted.

Last edited by Hatorijr; May 12th, 2009 at 08:31.
Hatorijr is offline   Reply With Quote
Old May 12th, 2009   #54 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
decided with the changes i made to just make a new post. i have created a temporary fix to the issue where the emu was unable to read the application config file. all sound samples now have global focus so they play even when the emu is out of focus. put in extra error checking code to prevent more crashes. also fixed an issue where the emu was really running at only 40 fps instead of 60.

enjoy this latest release, as always, report any issues noticed. and a big thank you to nosound and dax for beta testing .

Last edited by Hatorijr; May 15th, 2009 at 21:29. Reason: update zip file
Hatorijr is offline   Reply With Quote
Old May 12th, 2009   #55 (permalink)
Registered SuperKyo
 
Little Mike's Avatar
 
Join Date: Dec 2008
Location: Brinstar
Posts: 2,768
No problem, this emu works awesome. It became even more challenging from FPS jump as you said

And I don't know, if it's bug or not. Sometimes, when I'm watching demo, "Play" sign shows "Y" letter inverted. Don't really know if this should be in game, but it happens only from time to time.
__________________
Also known as nosound.97



Little Mike is offline   Reply With Quote
Old May 12th, 2009   #56 (permalink)
Dax
ライチュウ
 
Dax's Avatar
 
Join Date: Nov 2006
Location: USA
Posts: 3,277
That's part of the game.
Dax is offline   Reply With Quote
Old May 12th, 2009   #57 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
yea its part of the rolling demo, it was a royal pain to get working and was the last game bug i fixed as until i boosted the amount of ram available to the game, it crashed before showing that part. as space invaders requires just under 0x4200 bytes of memory to operate completely.

Edit: updated the file as i changed some stuff in the emu. For the time being, emu is capped at 60-64 fps until i can figure out what has caused the cap, but when i can get around it i may put in an option to change the speed and add more difficulty to the game. Seems somewhere other than my timer or video class has put the cap in place, if anyone has any ideas, feel free to post them, using c# btw.

Last edited by Hatorijr; May 13th, 2009 at 13:35.
Hatorijr is offline   Reply With Quote
Old May 13th, 2009   #58 (permalink)
Dax
ライチュウ
 
Dax's Avatar
 
Join Date: Nov 2006
Location: USA
Posts: 3,277


Working on GMA 950 now.
Dax is offline   Reply With Quote
Old May 13th, 2009   #59 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
you and nosound have been a great help in helping me find and fix these bugs, thank you both for the help. also thank you mudlord for your advice.
Hatorijr is offline   Reply With Quote
Old May 15th, 2009   #60 (permalink)
Emu Author
 
Hatorijr's Avatar
 
Join Date: Dec 2004
Location: North Carolina
Posts: 373
after a bit of work and some more testing by dax, my emu now has zip support.
if can choose to either load the resources using the zip file or you can extract them and use those instead, just you would need to delete the zip file or you can mix and match, just make sure if you want the emu to load files outside the zip file, to delete the files inside the zip first or it will default to load it from the zip file first.
Attached Files
File Type: zip Space_Invaders_Revolution.zip (607.9 KB, 6 views)

Last edited by Hatorijr; May 16th, 2009 at 04:09.
Hatorijr is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 09:41.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5