1. Post #121
    kill yourself
    Protocol7's Avatar
    June 2006
    25,820 Posts
    String fuckery ahoy.



    Good news is, it's only 5PM and I'm almost done with the hard shit.

    Bonus:

    Code:
    194 @ MEADOW GOLD TABLE CREAM                                            $483.06
    197 @ 1 GALLON VIVA 2% MILK                                              $549.63
    175 @ 12 OUNCE QUAKER OATMEAL                                            $348.25
    184 @ CAMPBELL'S TOMATO SOUP                                             $108.56
    173 @ 1 JAR GREEN OLIVES                                                 $430.77
    163 @ SUAVE SHAMPOO                                                      $161.37
    200 @ HEINZ KETCHUP                                                         $318
    175 @ LIPTON'S TEA                                                       $313.25
    169 @ DURKEE'S GROUND PEPPER                                             $505.31
    182 @ DOLE CRUSHED PINEAPPLE                                             $525.98
    174 @ ROMAN MEAL BREAD                                                   $433.26
    196 @ 1 LB ONIONS                                                        $115.64
    160 @ 1 LB BACON                                                          $478.4
    181 @ NORDICA COTTAGE CHEESE                                             $758.39
    170 @ NORTHERN TOILET PAPER                                               $297.5
    183 @ STARKIST TUNA FISH                                                 $181.17
    155 @ 1 LB CARROTS                                                        $91.45
    153 @ 18 OZ CHEERIOS CEREAL                                              $393.21
    174 @ 1 QUART WELCH'S GRAPE JUICE                                        $311.46
    186 @ 1 LB APPLES                                                        $202.74
    172 @ 6 BLUEBERRY MUFFINS                                                $221.88
    179 @ 2-LITRE PEPSI                                                      $230.91
    172 @ BOUNTY PAPER TOWELS                                                $306.16
    180 @ 1 LB POTATOES                                                        $84.6
    168 @ 6 HERSHEY BARS                                                     $502.32
    170 @ BAYER ASPIRIN                                                       $579.7
    168 @ SKIPPY PEANUT BUTTER                                               $761.04
    191 @ MOTHER'S COOKIES                                                   $571.09
    181 @ VLASIC PICKLES                                                     $541.19
    173 @ A1 STEAK SAUCE                                                     $794.07
    147 @ FRENCH'S MUSTARD                                                   $204.33
    153 @ DOLE RAISINS                                                       $702.27
    171 @ 1 LB BANANAS                                                       $100.89
    169 @ REYNOLD'S ALUMINUM FOIL                                            $268.71
    172 @ 1 LB RED GRAPES                                                    $307.88
    181 @ ANGEL FOOD CAKE                                                    $541.19
    197 @ 1 LB APRICOTS                                                      $589.03
    176 @ 6 ONION BAGELS                                                     $262.24
    173 @ DANNON'S YOGURT                                                    $136.67
    181 @ 1 LB CHEDDAR CHEESE                                                $631.69
    170 @ RAMEN NOODLES                                                        $49.3
    206 @ 1 LB FOLGER'S COFFEE                                               $718.94
    185 @ 30 GENERIC TRASH BAGS                                              $349.65
    178 @ JOY DISH DETERGENT                                                 $274.12
    175 @ 1 DOZEN EGGS                                                       $173.25
    173 @ DOLE FROZEN ORANGE JUICE                                           $257.77
    167 @ 1 LB BROCCOLI                                                      $198.73
    182 @ BUNCH RADISHES                                                      $70.98
    182 @ 1 LB VALENCIA ORANGES                                              $143.78
    186 @ 1 LB TOMATOES                                                      $370.14
    187 @ 1 LB CHERRIES                                                      $372.13
    160 @ PACE PICANTE SAUCE                                                  $398.4
    188 @ 1 LB GROUND BEEF                                                   $374.12
    144 @ FRITO-LAY POTATO CHIPS                                             $430.56
    164 @ 6-PACK PEPSI                                                       $211.56
    156 @ TIDE LIQUID DETERGENT                                             $1168.44
    179 @ 64 OZ OCEAN SPRAY CRANBERRY JUICE                                  $714.21
    
    *** SUBTOTAL                     $21621.34
    *** TAX                            $627.02
    *** TOTAL                          $22248.36
    That's some fucking shopping spree.

    Needs a bit of work on the output but still.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Useful Useful x 2Informative Informative x 1Funny Funny x 1 (list)

  2. Post #122
    Slaaf van EternalFlamez.Ik wilde heel graag de laatste Indie Bundle, en ik kreeg deze kuttitel er gratis bij.
    Staneh's Avatar
    March 2010
    4,059 Posts
    www.livestream.com/mrstaneh

    If anyone wants to see my bad coding, I'm gonna try and code these orbiting planets too, for a change.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  3. Post #123
    NovembrDobby's Avatar
    April 2007
    1,146 Posts
    warning: loud


    In my defense, this wasn't my idea.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 14Artistic Artistic x 1Winner Winner x 1 (list)

  4. Post #124
    thingshappen's Avatar
    December 2007
    236 Posts
    New test build of Phyzicle for Android
    Samsung Galaxy S
    Android 2.3.3
    - Doesn't attempt to load, hides my status bars but goes straight to a black screen. I've left it running for a while and still nothing, doesn't use any CPU and hovers around 23MB of RAM usage.
    - Somehow makes the task manager crash, might not be this app, but it's never crashed before.
    - Can send touch events to the app, and knows its running, but nothing happens.
    - No errors outputted to the debug monitor, and the app appears to be running normally, but it sits on the black screen.



    Out of interest, is there any debug messages in the application? Mine's not showing any. I'll keep trying different ways of getting it working, as before it was just a bad download that caused the previous error.

    Edited:
    Might have found something interesting. Upon installing it appears not to get given permission to set the orientation of the screen, causing it to error out.


    Edited:
    It's been mentioned before, but it doesn't appear to actually ask for the correct permissions when installing (although the terms are a bit sketchy, it could be asking for the correct information, but not showing the trivial things like screen rotation in here). All it asks for are permissions to phone calls and network communication.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  5. Post #125
    Gold Member
    GamingRobot32's Avatar
    January 2012
    153 Posts
    New test build of Phyzicle for Android

    Once again, I'd like:

    1) Device
    2) OS
    3) Result of running the app
    1) HTC Glacier (myTouch 4g)
    2) Cyanogenmod 7.0.3 (2.3.3)
    3) Black screen then crash
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  6. Post #126
    This title has been removed due to a copyright claim from Viacom Inc.
    neos300's Avatar
    July 2008
    3,483 Posts

    Time to start developing on Linux (yeah I'm using a VM that's what it say's I'm on Windows)
    Reply With Quote Edit / Delete Windows 7 United States Show Events Informative Informative x 1 (list)

  7. Post #127
    looped's Avatar
    May 2010
    56 Posts
    http://filesmelt.com/dl/Phyzicle1.apk

    New test build of Phyzicle for Android

    This time it should work better on the Galaxy S and the Android 2.2 devices, so if you guys could test it, that'd be awesome :)

    Once again, I'd like:

    1) Device
    2) OS
    3) Result of running the app

    There are many other fixes (softkey support, better UI sizing, and so on) but I'm mainly concerned about the device compatibility. If you have a device that worked in the previous test, feel free to try it again, just to make sure I didn't fuck something up!
    1) HTC Desire S
    2) Android 2.3.5
    3) Works perfectly, enjoyable to use
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Friendly Friendly x 1 (list)

  8. Post #128
    ASK ME ABOUT MY PLAYBOOK INSTEAD OF COLLEGE
    icantread49's Avatar
    April 2011
    1,616 Posts
    Yeah I just tried it again and you're right, my bad.

    The phone state thing I think has to do with the device ID or something.
    Any chance you can get a screenshot of the requested permissions? It shouldn't be asking for "phone calls" :/

    Edited:

    Samsung Galaxy S
    Android 2.3.3
    - Doesn't attempt to load, hides my status bars but goes straight to a black screen. I've left it running for a while and still nothing, doesn't use any CPU and hovers around 23MB of RAM usage.
    - Somehow makes the task manager crash, might not be this app, but it's never crashed before.
    - Can send touch events to the app, and knows its running, but nothing happens.
    - No errors outputted to the debug monitor, and the app appears to be running normally, but it sits on the black screen.



    Out of interest, is there any debug messages in the application? Mine's not showing any. I'll keep trying different ways of getting it working, as before it was just a bad download that caused the previous error.

    Edited:
    Might have found something interesting. Upon installing it appears not to get given permission to set the orientation of the screen, causing it to error out.


    Edited:
    It's been mentioned before, but it doesn't appear to actually ask for the correct permissions when installing (although the terms are a bit sketchy, it could be asking for the correct information, but not showing the trivial things like screen rotation in here). All it asks for are permissions to phone calls and network communication.
    You're a very good tester! Please add me on Steam when you get a chance: nullcubed

    Edited:

    1) HTC Glacier (myTouch 4g)
    2) Cyanogenmod 7.0.3 (2.3.3)
    3) Black screen then crash
    Thanks, I will investigate.
    Reply With Quote Edit / Delete Windows XP United States Show Events Friendly Friendly x 2 (list)

  9. Post #129
    Gold Member
    Catdaemon's Avatar
    February 2005
    2,821 Posts
    Any chance you can get a screenshot of the requested permissions? It shouldn't be asking for "phone calls" :/
    Reply With Quote Edit / Delete Windows 7 Show Events Zing Zing x 2 (list)

  10. Post #130
    Gold Member
    Naelstrom's Avatar
    June 2010
    2,677 Posts
    Whoa doxygen is pretty cool; since I decided to restart my game, I felt like I should try out new development tools.

    It made this pretty website for me: http://farmpolice.com/astrostruct/index.html
    Combined with autotools I have a really flexible program going.

    Oh I also learned quite a bit about OpenGL trying to get a texture atlas working for optimal text rendering. I learned about how mipmaps work (Don't generate a mipmap and then change the texture, causes really weird artifacts), and I also learned about texture filtering. With kopimi's help I have a really clean engine; which made it a piece of cake to add global texture filters.



    I can't wait to actually get somewhere with this game, wish me luck!
    Reply With Quote Edit / Delete Linux United States Show Events Dumb Dumb x 13Programming King Programming King x 1Winner Winner x 1 (list)

  11. Post #131
    false prophet's Avatar
    October 2011
    943 Posts
    Whoa doxygen is pretty cool; since I decided to restart my game, I felt like I should try out new development tools.

    It made this pretty website for me: http://farmpolice.com/astrostruct/index.html
    Combined with autotools I have a really flexible program going.

    Oh I also learned quite a bit about OpenGL trying to get a texture atlas working for optimal text rendering. I learned about how mipmaps work (Don't generate a mipmap and then change the texture, causes really weird artifacts), and I also learned about texture filtering. With kopimi's help I have a really clean engine; which made it a piece of cake to add global texture filters.

    -snip-

    I can't wait to actually get somewhere with this game, wish me luck!
    Was there a real need for the pointless, loud and irritating music in this video?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 7Dumb Dumb x 3Disagree Disagree x 1 (list)

  12. Post #132
    ASK ME ABOUT MY PLAYBOOK INSTEAD OF COLLEGE
    icantread49's Avatar
    April 2011
    1,616 Posts
    That's odd, I dunno why it calls it "Phone calls" .. It's one of Marmalade's internal requirements so, uh, I guess there's not much I can do right now. Thanks though!
    Reply With Quote Edit / Delete Windows XP United States Show Events

  13. Post #133
    Gold Member
    Naelstrom's Avatar
    June 2010
    2,677 Posts
    Was there a real need for the pointless, loud and irritating music in this video?
    I thought we've been over this.
    Reply With Quote Edit / Delete Linux United States Show Events Dumb Dumb x 12Disagree Disagree x 2 (list)

  14. Post #134
    kill yourself
    Protocol7's Avatar
    June 2006
    25,820 Posts
    Alphabetical sort.



    Also implemented a max on the per pound items, since that was required.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Informative Informative x 1 (list)

  15. Post #135
    Gold Member
    ZenX2's Avatar
    February 2009
    4,957 Posts
    1) Samsung Infuse
    2) Android 2.2
    3) Black screen and crash

    Come on, null
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 2 (list)

  16. Post #136
    voodooattack's Avatar
    October 2009
    1,936 Posts
    I've just setup config.site scripts to automate my default config variables.. now if I run a configure script with --prefix=/usr it's different than if I ran it with --prefix=/usr/local

    This automatically cross-compiles anything that's going into /usr/local to mingw, /usr gets native cygwin binaries.

    I just tested it out and it was awesome. And the best part? I can configure a library twice in rapid succession and install both versions along one another.
    Reply With Quote Edit / Delete Windows 7 Egypt Show Events

  17. Post #137
    ASK ME ABOUT MY PLAYBOOK INSTEAD OF COLLEGE
    icantread49's Avatar
    April 2011
    1,616 Posts
    1) Samsung Infuse
    2) Android 2.2
    3) Black screen and crash

    Come on, null
    I just realized I've been giving you guys Release builds. Probably better to give you a Debug build http://filesmelt.com/dl/Phyzicle2.apk

    Give me 1/2/3 like usual, but add a 4: Log output. You can dump it via "adb logcat -d > log.txt" or you can use another method. Please clear the log before you run the app, I'm only interested in the app part of the log.

    In the meantime...

    Reply With Quote Edit / Delete Windows XP United States Show Events Artistic Artistic x 7Programming King Programming King x 5Winner Winner x 2Informative Informative x 1 (list)

  18. Post #138
    gra

    August 2011
    276 Posts
    Oops I'm late but:



    Rating winners of the last thread.
    lmao
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 13 (list)

  19. Post #139
    voodooattack's Avatar
    October 2009
    1,936 Posts
    I just realized I've been giving you guys Release builds. Probably better to give you a Debug build http://filesmelt.com/dl/Phyzicle2.apk

    Give me 1/2/3 like usual, but add a 4: Log output. You can dump it via "adb logcat -d > log.txt" or you can use another method. Please clear the log before you run the app, I'm only interested in the app part of the log.

    In the meantime...

    you artistic bastard
    Reply With Quote Edit / Delete Windows 7 Egypt Show Events Funny Funny x 7Agree Agree x 3 (list)

  20. Post #140
    Gold Member
    ZenX2's Avatar
    February 2009
    4,957 Posts
    Working on getting my sidescroller to be able to load Tiled maps.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Informative Informative x 2 (list)

  21. Post #141

    April 2012
    87 Posts
    mouseover
    Reply With Quote Edit / Delete Windows 7 Canada Show Events Artistic Artistic x 24Dumb Dumb x 2Winner Winner x 1 (list)

  22. Post #142
    wizardsbane's Avatar
    January 2008
    372 Posts
    mouseover
    Gaaaah, demos *cream*
    Reply With Quote Edit / Delete Windows Vista United States Show Events Agree Agree x 4 (list)

  23. Post #143
    WhatTheEf's Avatar
    November 2010
    532 Posts
    1) LG Optimus One (P500)
    2) Android 2.2
    3) App opensfine (the graphics are glitched, however. They look like the colors are in 8bit and everything is orange and pixelated. I also have to force close it)
    Reply With Quote Edit / Delete Windows 7 Anonymous Proxy Show Events

  24. Post #144
    DFC
    DFC's Avatar
    September 2011
    275 Posts
    Babby's first program http://i.snag.gy/8RkUU.jpg
    Reply With Quote Edit / Delete Windows 7 United States Show Events Useful Useful x 1 (list)

  25. Post #145
    Gold Member
    ZenX2's Avatar
    February 2009
    4,957 Posts
    What, tiles are saving or loading wrong somewhere


    Edited:

    The coins are supposed to be solid blue squares
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 7 (list)

  26. Post #146
    Gold Member
    robmaister12's Avatar
    January 2008
    4,969 Posts
    Haven't posted in a while, I've actually been pretty busy lately, both with school and other projects. All we've really gotten done in the past month or so is abstracting user input (still need to allow for different key bindings), modifying the entity system just a little to allow for networking, and the beginning of an authentication server.

    We're throwing around ideas for how the UI will look, hopefully in a week I can start implementing it. We're also going to purchase a domain soon for a devblog, 2 weeks ago 4 programmers turned into 5 and we have some artists on board, so work is really going to pick up in the next few weeks once summer starts.

    Anyways, I fixed up my shaders and implemented normal mapping. Finally fixed the specular term, it looks really good when it's not overpowering:

    Reply With Quote Edit / Delete Windows 7 United States Show Events Programming King Programming King x 1Useful Useful x 1 (list)

  27. Post #147
    chimitos's Avatar
    September 2010
    2,345 Posts
    My engine is now useful. It can check for collisions between any of the game entities.

    This is the green circle:
    Code:
    package com.reywas.gameEngine;
    
    import android.graphics.Color;
    
    public class entity_collisionTestB extends engine_entity {
        public void step(){        
            if (collision.checkCollisionCircleCircle(x,y,radius,"entity_collisionTestA")){
                draw.drawCircle(x, y, radius, Color.RED, 255, true);
            }
            else{
                draw.drawCircle(x, y, radius, Color.GREEN, 255, true);
            }
        }
        public void firstStep(){
            entity_type = "entity_collisionTestB";
            radius = 100;
        }
    }
    Reply With Quote Edit / Delete Windows Vista United States Show Events Optimistic Optimistic x 1 (list)

  28. Post #148
    Gold Member
    ZenX2's Avatar
    February 2009
    4,957 Posts
    I conquered this Tiled loader's lack of spacing support.

    Reply With Quote Edit / Delete Windows 7 United States Show Events

  29. Post #149
    Gold Member
    robmaister12's Avatar
    January 2008
    4,969 Posts
    I never really understood the purpose of factory design pattern until now. My game has a component-based entity system and the ComponentManager uses reflection to find all the component types and initialize a new list for each type. We're starting to do networking so we need a way to convert a component to a byte[] for network transmission and create a component from a byte[] when it's received via the network.

    Converting to a byte[] is easy, but creating a new instance of a component is harder since everything is boxed as the IComponent interface. The way we identify a component type via networking is a 4-byte identifier. We're using expensive reflection every time we want to create an instance:

    foreach (Type t in Components.Keys)
    {
        IComponent instance = (IComponent)Activator.CreateInstance(t);
        if (type == instance.FileID)
            return instance.InitParse(data);
    }
    return null;
    

    I saw this code and thought that there has to be a much better way to do this. After thinking about it for 5 minutes, I eventually formed a system where each component has to have a nested class that just returns an instance of the component. As I thought about it I realized that it sounds a lot like factory design pattern, so I looked it up and it was factory design pattern! Now I added an IComponentFactory for each IComponent and the whole Activator.CreateInstance business turns into a single "callvirt" instruction.

    Initialization:
    private static Dictionary<int, IComponentFactory> typeIDs = new Dictionary<int, IComponentFactory>();
    //...
    static ComponentManager()
    {
        Type[] types = Assembly.GetExecutingAssembly().GetTypes();
        foreach (Type t in types)
        {
            if (t.GetInterfaces().Contains(typeof(IComponent)))
            {
                componentLists.Add(t, new List<IComponent>());
                IComponent instance = (IComponent)Activator.CreateInstance(t);
                typeIDs.Add(instance.FileID, instance.Factory);
            }
        }
    }
    

    Parsing:
    return typeIDs[type].CreateComponent().InitParse(data);
    

    The naming is still a bit weird and I'm going to move parsing into the factory later, but it's a start.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Programming King Programming King x 1 (list)

  30. Post #150
    www.bff-hab.de
    Dennab
    February 2009
    7,832 Posts
    I fixed the xkcd bot.

    The bug was that the previous comic's name wasn't stored in a variable, and thus it always thought it found a new comic and posted it
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Funny Funny x 2 (list)

  31. Post #151
    Richy19's Avatar
    May 2010
    5,375 Posts


    Hmm, something isnt quite right with libRocket...
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Artistic Artistic x 5Funny Funny x 2Informative Informative x 1Disagree Disagree x 1 (list)

  32. Post #152
    www.bff-hab.de
    Dennab
    February 2009
    7,832 Posts
    Are you making a game in the style of the portal trailers?
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Agree Agree x 5 (list)

  33. Post #153
    Richy19's Avatar
    May 2010
    5,375 Posts
    Are you making a game in the style of the portal trailers?
    That was the idea :D
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Winner Winner x 16 (list)

  34. Post #154
    thingshappen's Avatar
    December 2007
    236 Posts
    I just realized I've been giving you guys Release builds. Probably better to give you a Debug build http://filesmelt.com/dl/Phyzicle2.apk
    Samsung Galaxy S
    Android 2.3.3

    A bit of progress now, I can see the Marmalade debug screen:


    After that the screen goes black again and the program quits shortly after. Here's all the debug messages, probably including some which aren't relevant. I would post it here, but it's a huge page stretch.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  35. Post #155
    AntonioR's Avatar
    April 2011
    1,007 Posts
    So lonely :(
    Reply With Quote Edit / Delete Windows XP Croatia Show Events

  36. Post #156
    ASK ME ABOUT MY PLAYBOOK INSTEAD OF COLLEGE
    icantread49's Avatar
    April 2011
    1,616 Posts
    It looks like most of these issues come from Marmalade failing to set the correct GLES context.

    I/marmalade(23667): 03/05/12 11:55:19.763: [0xfa0] JAVA: LoaderGL-Thread-10: startGL done: com.google.android.gles_jni.EGLContextImpl@4052df3 0 eglMakeCurrent: false
    And then it goes:

    E/libEGL(23667): call to OpenGL ES API with no current context (logged once per thread)
    Which also explains the debug screen showing while the actual game is all black (until it exits).

    I gotta investigate these context issues. Marmalade 5.2.4 supposedly fixed them, but I guess not.

    Edited:

    Do you mind if I post your log on the Marmalade developer forums?
    Reply With Quote Edit / Delete Windows XP United States Show Events

  37. Post #157
    Richy19's Avatar
    May 2010
    5,375 Posts
    So lonely :(
    Dont worry, hopefully he will have lots of science to do soon
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Friendly Friendly x 1 (list)

  38. Post #158
    ASK ME ABOUT MY PLAYBOOK INSTEAD OF COLLEGE
    icantread49's Avatar
    April 2011
    1,616 Posts
    Whats a good webm hoster? puush appears down at the moment, and I'm not going to risk my Dropbox account with garry's auto-play bullshit
    Reply With Quote Edit / Delete Windows XP United States Show Events Agree Agree x 1 (list)

  39. Post #159
    Richy19's Avatar
    May 2010
    5,375 Posts
    Whats a good webm hoster? puush appears down at the moment, and I'm not going to risk my Dropbox account with garry's auto-play bullshit
    Why not just youtube the video?
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Agree Agree x 1 (list)

  40. Post #160
    ASK ME ABOUT MY PLAYBOOK INSTEAD OF COLLEGE
    icantread49's Avatar
    April 2011
    1,616 Posts
    I don't want to spam my Youtube account with what are essentially short GIFs for WAYWO
    Reply With Quote Edit / Delete Windows XP United States Show Events Agree Agree x 1 (list)