• What Are You Working On? V13
    5,003 replies, posted
For now I think I'll stick with a 160x240 back-buffer (same as the GBA) though instead of a 15-bit color it will be 8-bit. That's 38,400 bytes for the back-buffer leaving you with 27,136 bytes of memory.
[QUOTE=bladerunner627;25525580]8 bit data bus, 16-bit addressing. Yes you are correct but I'm debating implementing some sort of paging system where you get access to 64Kb chunks, the problem with this obviously being that you can only access one 64kB chunk at a time. The upside to this is you get some extra memory but it'll require some tricks to utilize both chunks. The Freescale 68HC12 had a way of doing this which allowed up to 512kB of memory but I'll have to do some research on how to properly implement this. I had the stack sitting in inaccessible memory space. EDIT: You know what I'll just keep it simple now and leave it at 64kB. I was planning to use the other 64kB for a 320x200 back-buffer like the Commodore 64.[/QUOTE] For extra nostalgia and pain, implement some wacky and kludgey segmentation system [editline]20th October 2010[/editline] [QUOTE=Dr Magnusson;25525850]Instead of using pages, why don't you just use 32-bit addressing instead?[/QUOTE] Not painful enough!
[QUOTE=Dr Magnusson;25525850]Instead of using pages, why don't you just use 32-bit addressing instead?[/QUOTE] Cause that would be too easy :P, I'm trying to be retro.
[QUOTE=polkm;25522056]Nice, this was funner than the last version. Possible improvments could be: [b]-The default answer to, "do you want to mine this?", be yes. Minor but sames a tiny bit of typing -Displaying some sorta progress bar for finding.[/b] -Find some materials require you to have an item in your inventory. (only find diamond if you have a pick) [i]-Maybe a system were you type "find log" and it would have a chance and random time to find it or fail at finding it. But maybe that is to easy.[/i] I hope you don't think just because I am suggesting ideas I think the game isn't fun, I do like it.[/QUOTE] You can actually do the one requiring items. RequiredItem property should work, i just always forget to mention them and include in devmode :argh: I'll do the bolded ones, and think about the cursive one. :3: [editline]11:18[/editline] [url=http://www.toodledo.com/views/public.php?id=td4ca5044633464]Here's my todo list, if anyone cares[/url]
[QUOTE=Dj-J3;25525924][url=http://www.toodledo.com/views/public.php?id=td4ca5044633464]Here's my todo list, if anyone cares[/url][/QUOTE] I notice you have a high priority task for a progress bar. Assuming you are using C++ and the standard library, here's a cross platform solution that you may be able to adapt :D. [cpp] #include <iostream> #include <vector> /* T: type of vector * U: return type of given function, which takes a type T */ template <typename T, typename U> void progress_bar (const std::vector<T>& iterable, U (*action)(T), const char& fill = '=', const char& empty = '.', const size_t& size = 60) { size_t count = iterable.size(); for (size_t main_idx = 0; main_idx < count; ++main_idx) { action(iterable.at(main_idx)); size_t x = (size * (main_idx + 1)) / count; std::cout << "["; for (size_t idx = 0; idx < x; ++idx) { std::cout << fill; } for (size_t idx = 0; idx < (size - x); ++idx) { std::cout << empty; } std::cout << "]\t" << main_idx + 1 << "/" << count << "\r"; std::cout.flush(); // Place any pause/sleep functions HERE on THIS line. :) } std::cout << std::endl; } void test(int var) { //DO whatever you want here. Except output. Otherwise you're BONED. :V } int main(void) { std::vector<int> ints(42, 5); // Create a vector of 42 integers with values of 5; progress_bar<int, void>(ints, &test); } [/cpp] I would like to briefly note as well, that this will work with any C++03 compiler, and on any Operating system that supports a carriage return (\r). It is possible to have a cleaner implementation with C++0x, specifically with the use of the decltype keyword.
[QUOTE=Dj-J3;25525924]You can actually do the one requiring items. RequiredItem property should work, i just always forget to mention them and include in devmode :argh: I'll do the bolded ones, and think about the cursive one. :3: [editline]11:18[/editline] [URL="http://www.toodledo.com/views/public.php?id=td4ca5044633464"]Here's my todo list, if anyone cares[/URL][/QUOTE] So, we're sharing todo lists now? [URL]http://www.toodledo.com/views/public.php?id=td4cbdef0d475da;f=1239057[/URL] Okay, then. [editline]20th October 2010[/editline] [img]http://gyazo.com/f734981c30758d0c70c8430cd0499a42.png[/img] [img]http://gyazo.com/5ddd70562d89f21c5daf00f943f6e12b.png[/img] :dance: Edit: NPCs now have genders, too.
I don't know if i should migrate to the Web Development thread, but here it goes until then.. - Now you can see how many users there are online - Working achievments Implementing users (login) and stats soon. [url=http://braxnet.org/unifrog/]Get it here[/url]
[QUOTE=Giraffen93;25527417]I don't know if i should migrate to the Web Development thread, but here it goes until then.. - Now you can see how many users there are online - Working achievments Implementing users and stats soon. [url=http://braxnet.org/unifrog/]Get it here[/url][/QUOTE] I am proud to say that I'm helping the Unifrog. Nice avatar by the way. :v:
[QUOTE=Chandler;25526358]I notice you have a high priority task for a progress bar. Assuming you are using C++ and the standard library, here's a cross platform solution that you may be able to adapt :D. [cpp] #include <iostream> #include <vector> /* T: type of vector * U: return type of given function, which takes a type T */ template <typename T, typename U> void progress_bar (const std::vector<T>& iterable, U (*action)(T), const char& fill = '=', const char& empty = '.', const size_t& size = 60) { size_t count = iterable.size(); for (size_t main_idx = 0; main_idx < count; ++main_idx) { action(iterable.at(main_idx)); size_t x = (size * (main_idx + 1)) / count; std::cout << "["; for (size_t idx = 0; idx < x; ++idx) { std::cout << fill; } for (size_t idx = 0; idx < (size - x); ++idx) { std::cout << empty; } std::cout << "]\t" << main_idx + 1 << "/" << count << "\r"; std::cout.flush(); // Place any pause/sleep functions HERE on THIS line. :) } std::cout << std::endl; } void test(int var) { //DO whatever you want here. Except output. Otherwise you're BONED. :V } int main(void) { std::vector<int> ints(42, 5); // Create a vector of 42 integers with values of 5; progress_bar<int, void>(ints, &test); } [/cpp] I would like to briefly note as well, that this will work with any C++03 compiler, and on any Operating system that supports a carriage return (\r). It is possible to have a cleaner implementation with C++0x, specifically with the use of the decltype keyword.[/QUOTE] I'm actually using C#, but thanks anyway. :3:
You can do loops now pretty easily :) [code] LDA 50 LDB 0 Loop: DECA INCB CMPA 0 JNE Loop END [/code] Debug output: [code] A: 0 B: 50 CCR: 128 PC: 11 SP: 65535 [/code]
I do want encryption for user login in unifrog, but i just can't get it to work, any copypaste code i can use? :downs:
[QUOTE=Giraffen93;25520903]I don't get it, can't hear a single difference between 128/320/640/flac whatever.. Do i have hearing problems? :downs:[/QUOTE] Yes. While it's uncommon of people to be able to hear the difference between 320 CBR/FLAC, it's very obvious for me when an MP3 file is <256kbs
I did those A/B tests a while back, no difference at all. But i have to say when it's less than 128 i hear a slight difference.
[media]http://www.youtube.com/watch?v=nH15zg8Fmus[/media] Just a little something i wanted to show. :v:
[QUOTE=Dj-J3;25528010][media]http://www.youtube.com/watch?v=nH15zg8Fmus[/media] Just a little something i wanted to show. :v:[/QUOTE] How did you make the | rotate? (i know it switches \ | / - \ | / - ...) but how did you manage to erase it then write it again?
[QUOTE=Richy19;25528082]How did you make the | rotate? (i know it switches \ | / - \ | / - ...) but how did you manage to erase it then write it again?[/QUOTE] [cpp]Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);[/cpp]
Cool thanks Tried various ways of using that but it keeps giving me the same error [quote]Unhandled Exception: System.ArgumentOutOfRangeException: Value must be positive and below the buffer width. Parameter name: left at System.TermInfoDriver.SetCursorPosition (Int32 left, Int32 top) [0x00000] at System.ConsoleDriver.SetCursorPosition (Int32 left, Int32 top) [0x00000] at System.Console.SetCursorPosition (Int32 left, Int32 top) [0x00000] at IRCClient.MainClass.loading () [0x00000] [/quote]
[QUOTE=Richy19;25528120]cool thanks[/QUOTE] No problem :buddy:
[img]http://gyazo.com/841726f44e05a49654c7d987a48990ad.png[/img] Possession? Possession. Edit: I'll stop spamming this soon, I promise. :rolleyes:
[QUOTE=BlkDucky;25528591]Edit: I'll stop spamming this soon, I promise. :rolleyes:[/QUOTE] No worries, i like seeing other peoples progress. That's what this thread is for, right? :3:
[QUOTE=Dj-J3;25528094][cpp]Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);[/cpp][/QUOTE] Posted this on the previous page but new page so though i would post it again. Tried various ways of using that but keep getting the same error. [quote]Unhandled Exception: System.ArgumentOutOfRangeException: Value must be positive and below the buffer width. Parameter name: left at System.TermInfoDriver.SetCursorPosition (Int32 left, Int32 top) [0x00000] at System.ConsoleDriver.SetCursorPosition (Int32 left, Int32 top) [0x00000] at System.Console.SetCursorPosition (Int32 left, Int32 top) [0x00000] at IRCClient.MainClass.loading () [0x00000] [/quote] Using MonoDevelop on Ubuntu if it makes a difference.
[QUOTE=Richy19;25528709]Posted this on the previous page but new page so though i would post it again. Tried various ways of using that but keep getting the same error. Using MonoDevelop on Ubuntu if it makes a difference.[/QUOTE] You realize the exception describes the problem perfectly accurately, right?
[QUOTE=gparent;25528844]You realize the exception describes the problem perfectly accurately, right?[/QUOTE] Yea a couple of minutes after posting that i realized it was because when i use Console.WriteLine it writes it in a new line which ofc has a Console.CursorLeft value of 0 and when you do Console.CursorLeft-1 it errors
[img]http://imagebin.ca/img/rhwhTd9.png[/img] Been working all day on two things, fixing someones computer ( that I broke :D ) and working on this To Do List program. I saw the few posts about To Do lists for programming, and realized how productive that'd make me, having all my options laid out flat for me. My friend and I talked about it and after an hour of class I decided I'd make one. It's not done yet, but most of the functionality is there aside from Saving and Loading Task Lists and having the Constant Reminder show up periodically if you have any tasks set to urgent. The Current Features are * Five statuses you can set your tasks to ( Done, Urgent, Working On, On Hold, and Meh/I don't give a fuck/coffee ) * Tree view, so you can easily seperate different projects and tasks into different groups/topics/whatevs. Features I'm working on [b]Right now[/b] * Periodic Notification on urgent projects. * Options Menu * Minimize to Notification Area * Save and Load Current Bugs * Deselecting a task when you finish editing it.
Looks awesome NorthernGate. I'm currently using RainMeter's Note plugin but that isn't much of a use to me. One question, did you make those icons yourself? I need that program asap, can't wait for it to be released :downs:
[QUOTE=Shammah;25528996]Looks awesome NorthernGate. I'm currently using RainMeter's Note plugin but that isn't much of a use to me. One question, did you make those icons yourself? I need that program asap, can't wait for it to be released :downs:[/QUOTE] [url]http://www.famfamfam.com/[/url] I believe.
[QUOTE=BlkDucky;25528591]Edit: I'll stop spamming this soon, I promise. :rolleyes:[/QUOTE] Don't! Any content = good content (for the most part)
[QUOTE=Shammah;25528996]Looks awesome NorthernGate. I'm currently using RainMeter's Note plugin but that isn't much of a use to me. One question, did you make those icons yourself? I need that program asap, can't wait for it to be released :downs:[/QUOTE] The icons are from the amazing [url=http://www.famfamfam.com/lab/icons/silk/]FamFamFam Silk Icon Set[/url]
Oh that's awesome, thanks! Now I can finally create nice looking GUI applications :3:
Got viscoelasticity working in my fluid sim :v: [img]http://yourimg.in/f/89083h.png[/img] I can now simulate anything from clay to elastic bands to multiple bodily fluids! Currently there's no dynamic spring creation, I couldn't find an efficient way to do it in haXe but I'm still looking into it (sidenote - does anyone know a way to combine 2 integers and later decompose the result to get them back?). [url=http://www.fileize.com/view/2c63edd2-197/]quick demo[/url] (not interactive, still fiddling with things)
Sorry, you need to Log In to post a reply to this thread.