1. Post #41
    TheAnyInbox's Avatar
    November 2010
    158 Posts
    This is really nice! I would have never thought Gmod Lua would go this far!

  2. Post #42
    Gold Member
    dude2193's Avatar
    April 2006
    2,603 Posts
    wow, props to garry for exposing so many commands and implementing lua so well that someone like technicolour can actually implement an emulator in source
    Reply With Quote Edit / Delete Reply Windows 7 Australia Show Events Agree Agree x 6Friendly Friendly x 1Dumb Dumb x 1Funny Funny x 1 (list)

  3. Post #43
    technicolour's Avatar
    January 2008
    107 Posts
    Worked several ours straight trying to weed out bugs of the CPU Core, got a few but it's soul destroying work. A few more Demos and commercial games are showing life, the most significant is that CPU Instruction test Roms are running to completion, allowing me to use these to test further.

    Tomorrow I'm hoping to weed out the last of the CPU Core bugs and implement the final LCD interrupts. Once these are done there shouldn't be anything stopping me from adding full GPU support, cart support and input support and we will finally see games being played.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Lua King Lua King x 3 (list)

  4. Post #44

    August 2010
    1,146 Posts
    Is this capable of loading existing games? Or do they have to be converted or remade?

  5. Post #45
    Coon's Avatar
    August 2011
    262 Posts
    This is cool.

  6. Post #46
    technicolour's Avatar
    January 2008
    107 Posts
    Is this capable of loading existing games? Or do they have to be converted or remade?
    Other than having to rename the extension to .txt it plays existing games without issue. (Or at least, will once comparability is up)
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Lua King Lua King x 1Winner Winner x 1 (list)

  7. Post #47
    Gold Member
    Fatman55's Avatar
    August 2008
    4,431 Posts
    So this is done with basic Lua?
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Late Late x 3 (list)

  8. Post #48
    technicolour's Avatar
    January 2008
    107 Posts
    So this is done with basic Lua?
    Well I wouldn't call it it basic Lua, but yeah, yeah it is.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Lua King Lua King x 1 (list)

  9. Post #49
    Gold Member
    Scot's Avatar
    March 2007
    11,410 Posts
    Fucking reddit.
    Reply With Quote Edit / Delete Reply Windows 7 Russian Federation Show Events Agree Agree x 5Funny Funny x 2Disagree Disagree x 1 (list)

  10. Post #50
    Gold Member
    N.A.N.B's Avatar
    November 2010
    655 Posts
    Holy shit, again with the 1000+ guests
    Must I say again how the guest pile doesn't stop from getting higher?

  11. Post #51
    Moderator
    Ninja101's Avatar
    December 2008
    741 Posts
    https://twitter.com/#!/mikkohypponen...59112231661569

    Mikko from F-Secure has taken an interest
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Lua King Lua King x 1Winner Winner x 1 (list)

  12. Post #52
    dag10's Avatar
    January 2009
    1,038 Posts
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 1Informative Informative x 1 (list)

  13. Post #53
    Anathema's Avatar
    July 2011
    2 Posts
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Informative Informative x 1 (list)

  14. Post #54
    NotDavid's Avatar
    October 2006
    8 Posts
    Haha, whoa! This is great.

  15. Post #55
    Psycoace2's Avatar
    July 2010
    1,031 Posts
    Holy shit. Nine times LMAO thread's user count...

  16. Post #56
    Gold Member
    peterson's Avatar
    October 2005
    2,386 Posts
    hi mom
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Useful Useful x 1Informative Informative x 1Friendly Friendly x 1Funny Funny x 1 (list)

  17. Post #57
    Kaze's Avatar
    August 2011
    771 Posts
    This is amazing. I can imagine running gameboy camera and scaring the living shit out of people.

    Now make it load the Gameboy Camera rom and scare people.

    WHO ARE YOU RUNNING FROM?!?
    Damn it.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Late Late x 1 (list)

  18. Post #58

    January 2010
    89 Posts
    how about putting this on a git or svn repo so we can follow your changes

  19. Post #59
    technicolour's Avatar
    January 2008
    107 Posts
    how about putting this on a git or svn repo so we can follow your changes
    At the current state that would probably cause more headaches, there's literally no proper games working.

  20. Post #60
    Sled Dog's Avatar
    September 2010
    455 Posts
    Jesus, soon we will play gmod inside of gmod!
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Optimistic Optimistic x 2 (list)

  21. Post #61
    Cool Kid
    meatwad253's Avatar
    December 2009
    821 Posts
    Wow this looks amazing.

  22. Post #62
    MasterDragon
    Siminov's Avatar
    May 2009
    5,744 Posts
    Sweet

  23. Post #63
    The BoxDog's Avatar
    March 2009
    5,365 Posts
    This is too amazing.

  24. Post #64
    Gold Member
    Fisk's Avatar
    March 2010
    3,454 Posts
    Nvm.

  25. Post #65
    Red scout?'s Avatar
    July 2009
    2,711 Posts
    This is very impressive. Great work!

  26. Post #66
    Gold Member
    itak365's Avatar
    March 2009
    2,437 Posts
    I seriously think this got the same amount of views in two days that big official epic release threads get in months :o

    I can't explain how epic this probably will be, though.
    Reply With Quote Edit / Delete Reply Windows Vista United States Show Events Agree Agree x 1 (list)

  27. Post #67
    [EG] Pepper's Avatar
    August 2009
    7,857 Posts
    My word, that is impressive.

  28. Post #68
    mmavipc's Avatar
    February 2009
    830 Posts
    You beat the fucking oblivion thread on referral count.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Funny Funny x 3Dumb Dumb x 1 (list)

  29. Post #69

    January 2010
    89 Posts
    Lets hope this comes out with either a svn link an alpha release or beta release before Christmas

  30. Post #70
    SK17a
    garychencool's Avatar
    October 2010
    8,604 Posts
    this is going to be good

  31. Post #71
    technicolour's Avatar
    January 2008
    107 Posts
    the CPU core is now almost fully debugged. I managed to find a bug which had been causing the Test Roms to not run at all and fixing this allowed me to run the test roms correctly, since then I've now fixed almost all bugs (A couple of minor ones remain but I'm confident I can fix them). I'm expecting to get Tetris in-game by the end of the day.

    It took me 3 f'n days of going through the CPU step by step to find what was causing that bug.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Lua King Lua King x 6Winner Winner x 1Disagree Disagree x 1 (list)

  32. Post #72
    Gold Member
    Divran's Avatar
    April 2008
    2,530 Posts
    And I've rewritten most of the entity, so it's much neater now. Still have to do the key syncing, though, so that other people can see what you see.

    Oh and it's going to be limited to one emulator at a time per server, since A) we only have one RT - can't be arsed to make more, and B) emulating is pretty damn demanding, so having more would rape your FPS.

    We are going to attempt having multiple emulators, but only one rendering at a time, to see if that's viable, before I limit it to one per server, though.
    Reply With Quote Edit / Delete Reply Windows 7 Sweden Show Events Lua King Lua King x 1Lua Helper Lua Helper x 1 (list)

  33. Post #73

    August 2010
    1,146 Posts
    Scrap that last question. Are you reading directly from binary (hex w/e)? If so how do you get it into usable info in lua. I can't seem to even pull a single bit of info from a file of this type, just random characters.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Dumb Dumb x 3 (list)

  34. Post #74
    Gold Member
    PortalGod's Avatar
    August 2009
    1,841 Posts
    How far do you think you guys are from getting Pokemon working?
    This post makes me sad
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Friendly Friendly x 2 (list)

  35. Post #75

    August 2010
    1,146 Posts
    Ok, figured it out. Thank you Lua wiki.
    local f = assert(file.Read("gold.txt"))
    --local data = f:read("*all")
    for i = 0, math.Round(string.len(f)/16) do 
    	local data = string.sub(f, i*16 + 1, (i+1)*16)
    	for b in string.gmatch(data, ".") do
    		Msg(string.format("%02X ", string.byte(b)).. "  ")
    	end
    	Msg("    "..string.gsub(data, "%c", ".").."\n")
    end

    Edited:

    Wow these are slow operations. Then again I am trying to read a 2,000,000 byte file.

    EDIT: Added better function which prints a better display of the hex.

  36. Post #76
    technicolour's Avatar
    January 2008
    107 Posts
    for N = 0, 0x7FFF do
    self.ROM[N] = string.byte(string.sub(self.ROMstring,N+1,N+1))
    end

    That reads the bytes from a string and stores them in an array.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Useful Useful x 2 (list)

  37. Post #77

    July 2006
    32 Posts
    found a flash gameboy emulator
    http://sandbox.photonstorm.com/gameboy/index.html
    Reply With Quote Edit / Delete Reply Windows 7 Hong Kong Show Events Informative Informative x 1 (list)

  38. Post #78
    Poesidan [GAG]'s Avatar
    October 2009
    1,591 Posts
    This post makes me sad
    nah don't be sad. You're making a more high-def version then they are implementing. I think they're porting Red and Blue. Your work looks more 3D, plus you have the option to change some annoying shit in the game that nintendo added (whatever may that be).
    Reply With Quote Edit / Delete Reply Windows Vista United States Show Events Agree Agree x 1 (list)

  39. Post #79
    Gold Member
    Divran's Avatar
    April 2008
    2,530 Posts
    I think they're porting Red and Blue.
    Actually, we're only at gameboy now, not gameboy color. That'll be a while yet.
    EDIT: Nevermind, apparently those work on the regular gameboy too (yay)
    Reply With Quote Edit / Delete Reply Windows 7 Sweden Show Events Informative Informative x 1Funny Funny x 1 (list)

  40. Post #80
    technicolour's Avatar
    January 2008
    107 Posts
    Our aims are to get all the classics working up, First Tetris then Zelda and the Pokemon games.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Winner Winner x 3 (list)