1. Post #81
    Nigey Nige's Avatar
    June 2010
    1,567 Posts
    oh whats that I got in the highlights no big deal it happens when you're nige



    Edited:

    apparently I can't code collision for dicks oh well
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 18Winner Winner x 2 (list)

  2. Post #82
    Gold Member
    WeltEnSTurm's Avatar
    December 2007
    1,785 Posts
    Lua or Python as scripting language?
    LuaJIT seems easier to implement, but the world around Python seems more 'active'.
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Disagree Disagree x 1 (list)

  3. Post #83
    Gold Member
    Lexic's Avatar
    March 2009
    6,114 Posts
    Lua. The answer is always Lua.
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Agree Agree x 26Disagree Disagree x 5 (list)

  4. Post #84
    Gold Member
    Vbits's Avatar
    April 2010
    1,088 Posts
    I've found from a C++ perspective Javascript is a lot easier to use at least with V8.
    Reply With Quote Edit / Delete Mac New Zealand Show Events Agree Agree x 2Disagree Disagree x 1 (list)

  5. Post #85
    T3hGamerDK's Avatar
    January 2011
    2,435 Posts
    Lua or Python as scripting language?
    LuaJIT seems easier to implement, but the world around Python seems more 'active'.
    Someone had mentioned a ruby/perl/python-like language that used luajit2 and transcompiled to Lua. Anyone?
    Reply With Quote Edit / Delete Linux Denmark Show Events

  6. Post #86
    Gold Member
    voodooattack's Avatar
    October 2009
    2,032 Posts
    Wow, I just got RTMP parsing up and running in 2 hours.. new record with protocols for me.
    Reply With Quote Edit / Delete Windows 7 Egypt Show Events Useful Useful x 1Programming King Programming King x 1 (list)

  7. Post #87
    Gold Member
    Richy19's Avatar
    May 2010
    5,745 Posts
    Someone had mentioned a ruby/perl/python-like language that used luajit2 and transcompiled to Lua. Anyone?
    You mean Lupa
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Friendly Friendly x 1 (list)

  8. Post #88
    T3hGamerDK's Avatar
    January 2011
    2,435 Posts
    You mean Lupa
    Yes, this one exactly: https://github.com/richardhundt/lupa
    Reply With Quote Edit / Delete Linux Denmark Show Events

  9. Post #89
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,103 Posts
    Lua or Python as scripting language?
    LuaJIT seems easier to implement, but the world around Python seems more 'active'.
    If you want raw speed and simplicity, Lua.

    If speed isn't of utmost importance and you'd like a more fully featured 'nice' language, Ruby is pretty easy to embed.
    Reply With Quote Edit / Delete Mac Australia Show Events Funny Funny x 14Agree Agree x 2Dumb Dumb x 1 (list)

  10. Post #90
    T3hGamerDK's Avatar
    January 2011
    2,435 Posts
    If you want raw speed and simplicity, Lua.

    If speed isn't of utmost importance and you'd like a more fully featured 'nice' language, Ruby is pretty easy to embed.
    Ruby can be embedded easily? I never knew, I'll have to look that up some time.
    Reply With Quote Edit / Delete Linux Denmark Show Events

  11. Post #91
    Gold Member
    WeltEnSTurm's Avatar
    December 2007
    1,785 Posts
    Lupa looks nice, I'll start with Lua though.
    Let's see if I can do something like this:
    lua::var someTable = { 12, "Hello there", "how are you" };
    Should be easy to do with C++11. :3
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Disagree Disagree x 1 (list)

  12. Post #92
    Gold Member
    Jookia's Avatar
    July 2007
    6,614 Posts
    Lupa looks nice, I'll start with Lua though.
    Let's see if I can do something like this:
    lua::var someTable = { 12, "Hello there", "how are you" };
    Should be easy to do with C++11. :3
    Lua and Unicode...
    Reply With Quote Edit / Delete Linux Australia Show Events Funny Funny x 2Optimistic Optimistic x 2 (list)

  13. Post #93
    Paid for a title.
    Maurice's Avatar
    June 2005
    5,726 Posts
    Terrible gif because terrible computer, but you get the idea.

    Reply With Quote Edit / Delete Windows 7 Germany Show Events Winner Winner x 11Optimistic Optimistic x 1Friendly Friendly x 1Funny Funny x 1 (list)

  14. Post #94
    Gold Member
    Maloof?'s Avatar
    December 2006
    7,968 Posts
    Terrible gif because terrible computer, but you get the idea.

    Super Mario 3 meets Super Mario meets Super Mario Portal?
    Reply With Quote Edit / Delete Windows 7 New Zealand Show Events Agree Agree x 6 (list)

  15. Post #95
    Gold Member
    Richy19's Avatar
    May 2010
    5,745 Posts
    Do you have to do anything special to use Simple Lua Binder and Lupa together?
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Disagree Disagree x 1 (list)

  16. Post #96
    Paid for a title.
    Maurice's Avatar
    June 2005
    5,726 Posts
    Super Mario 3 meets Super Mario meets Super Mario Portal?
    I have lost count of the number of games that make up Mari0.
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Funny Funny x 18 (list)

  17. Post #97
    Gold Member
    confinedUser's Avatar
    October 2008
    3,831 Posts
    whats funny is as soon as i saw the mari0 gif my phone goes off with the little sound of mario dieing
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner Winner x 2 (list)

  18. Post #98
    Gold Member
    Lexic's Avatar
    March 2009
    6,114 Posts
    Lua and Unicode...
    Code:
    $ lua                                                                [13:44:46]
    Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
    > print(string.gsub("Lua and Un𝒾cod?", "?", "."))
    Lua and Un𝒾cod.
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Funny Funny x 1 (list)

  19. Post #99
    Gold Member
    Jookia's Avatar
    July 2007
    6,614 Posts
    Code:
    $ lua                                                                [13:44:46]
    Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
    > print(string.gsub("Lua and Un풾cod?", "?", "."))
    Lua and Un풾cod.
    You got a big surprise coming to you. That won't work everywhere. Go check out the file system API on Windows and you'll see what I mean. Go check it out!
    Reply With Quote Edit / Delete Linux Australia Show Events Disagree Disagree x 1 (list)

  20. Post #100
    Crescent fresh
    Perl's Avatar
    January 2011
    1,343 Posts


    wat
    Reply With Quote Edit / Delete Windows 8 Estonia Show Events Agree Agree x 20Funny Funny x 2Disagree Disagree x 1 (list)

  21. Post #101
    Gold Member
    Lexic's Avatar
    March 2009
    6,114 Posts
    You got a big surprise coming to you. That won't work everywhere. Go check out the file system API on Windows and you'll see what I mean. Go check it out!
    I would, but I'm not going to. Is that the only place where it's broken?
    Reply With Quote Edit / Delete Mac United Kingdom Show Events

  22. Post #102
    Gold Member
    WeltEnSTurm's Avatar
    December 2007
    1,785 Posts
    You got a big surprise coming to you. That won't work everywhere. Go check out the file system API on Windows and you'll see what I mean. Go check it out!
    I'll just bind fstream in lua, then
    Reply With Quote Edit / Delete Windows 7 Austria Show Events

  23. Post #103
    Gold Member
    Lexic's Avatar
    March 2009
    6,114 Posts
    FP doesn't seem to support unicode properly. If you edit/quote a post with unicode stuff in it, it breaks.
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Informative Informative x 4 (list)

  24. Post #104
    Gold Member
    Jookia's Avatar
    July 2007
    6,614 Posts
    I'll just bind fstream in lua, then
    Do you have fstream fixed in Windows to use UTF-8? Boost.NoWide does that.

    I would, but I'm not going to. Is that the only place where it's broken?
    No, it's broken in general. There's no Unicode support. Bytes go in, bytes go out. This is pretty much okay on Unix where UTF-8 exists, but on Windows almost all Unicode support is in wide APIs.

    Edited:

    FP doesn't seem to support unicode properly. If you edit/quote a post with unicode stuff in it, it breaks.
    Pretty much this. I'm not sure if it's because Windows ANSI is used here, but turb said a while back that it's due to characters out of the BMP.

    Okay screw this I'm going to stop replying for the next few hours and get a Unicode thread up.
    Reply With Quote Edit / Delete Linux Australia Show Events Winner Winner x 3 (list)

  25. Post #105
    Gold Member
    WeltEnSTurm's Avatar
    December 2007
    1,785 Posts
    Do you have fstream fixed in Windows to use UTF-8? Boost.NoWide does that.
    fstream file(widen(path));

    No, it's broken in general. There's no Unicode support. Bytes go in, bytes go out. This is pretty much okay on Unix where UTF-8 exists, but on Windows almost all Unicode support is in wide APIs.
    I doubt I'll ever want to use WinApi directly from Lua
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Disagree Disagree x 2 (list)

  26. Post #106
    Gold Member
    voodooattack's Avatar
    October 2009
    2,032 Posts
    Code:
       0: 02 00 07 63 6F 6E 6E 65 63 74 00 3F F0 00 00 00  ...connect.?... 
      16: 00 00 00 03 00 03 61 70 70 02 00 00 00 08 66 6C  ......app.....fl 
      32: 61 73 68 56 65 72 02 00 0D 57 49 4E 20 31 30 2C  ashVer...WIN 10, 
      48: 30 2C 34 35 2C 32 00 06 73 77 66 55 72 6C 06 00  0,45,2..swfUrl.. 
      64: 05 74 63 55 72 6C 02 00 10 72 74 6D 70 3A 2F 2F  .tcUrl...rtmp:// 
      80: 6C 6F 63 61 6C 68 6F 73 74 00 04 66 70 61 64 01  localhost..fpad. 
      96: 00 00 0C 63 61 70 61 62 69 6C 69 74 69 65 73 00  ...capabilities. 
     112: 40 2E 00 00 00 00 00 00 00 0B 61 75 64 69 6F 43  @.........audioC 
     128: C3 6F 64 65 63 73 00 40 A8 EE 00 00 00 00 00 00  odecs.@...... 
     144: 0B 76 69 64 65 6F 43 6F 64 65 63 73 00 40 6F 80  .videoCodecs.@o 
     160: 00 00 00 00 00 00 0D 76 69 64 65 6F 46 75 6E 63  .......videoFunc 
     176: 74 69 6F 6E 00 3F F0 00 00 00 00 00 00 00 07 70  tion.?........p 
     192: 61 67 65 55 72 6C 06 00 00                       ageUrl...
    Oh adobe you retarded company.. who the fuck encodes statically typed field names in utf8?
    Reply With Quote Edit / Delete Windows 7 Egypt Show Events Funny Funny x 9Winner Winner x 1 (list)

  27. Post #107
    Gold Member
    Deco Da Man's Avatar
    July 2007
    964 Posts
    You got a big surprise coming to you. That won't work everywhere. Go check out the file system API on Windows and you'll see what I mean. Go check it out!
    http://williamaadams.wordpress.com/2...ls-in-windows/

    Lua strings are simply C strings wrapped nicely.
    If you want to use Unicode Windows functions via Lua rather than the default os and io libraries, you'll need to use an FFI library; conveniently, LuaJIT has one the best one built-in.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Disagree Disagree x 1 (list)

  28. Post #108
    Gold Member
    Xeon06's Avatar
    September 2005
    1,187 Posts
    Added a pistol and texture for the hands. Some animations were tweaked.

    [URL]
    I'm sorry if I missed it, but what engine is that? Is it your own, or are you using something like Unity or UDK?
    Reply With Quote Edit / Delete Windows 7 Canada Show Events Agree Agree x 2 (list)

  29. Post #109
    Gold Member

    October 2008
    3,499 Posts
    Added a pistol and texture for the hands. Some animations were tweaked.

    [URL]
    For some reason I like the song that's playing, what's it called?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 1 (list)

  30. Post #110
    Gold Member
    Downsider's Avatar
    July 2007
    2,158 Posts
    I'm sorry if I missed it, but what engine is that? Is it your own, or are you using something like Unity or UDK?
    It's my own engine. It's for the PS Vita.

    The song is Sea of Something by I am This.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner Winner x 15Programming King Programming King x 3Friendly Friendly x 1 (list)

  31. Post #111
    Gold Member
    Dr Magnusson's Avatar
    July 2008
    2,848 Posts
    I wrote out a lengthy post here about my troubles with trying to find an elegant solution to a parsing problem I was having with Charles, only to realize the solution just as I was about to post it.

    I'll spare you the details, but now this:
    swapinc : (a:i32, b:i32, c:i32 => x:i32, y:i32) =
    { 
    	x = b + 1 
    	y = a + -1 
    	n:i32 = 20 
    }
    

    Is now successfully parsed into this really neat AST:

    Reply With Quote Edit / Delete Windows 7 Denmark Show Events Artistic Artistic x 4Winner Winner x 1Funny Funny x 1Programming King Programming King x 1 (list)

  32. Post #112
    Gold Member
    Jookia's Avatar
    July 2007
    6,614 Posts
    Reply With Quote Edit / Delete Linux Australia Show Events Winner Winner x 6 (list)

  33. Post #113
    open.gl
    Overv's Avatar
    February 2007
    6,848 Posts
    Yesterday I made babby's first pixel art.



    I'm going to try to practice regularly from now on.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Artistic Artistic x 9Winner Winner x 2Optimistic Optimistic x 1Programming King Programming King x 1 (list)

  34. Post #114
    Gold Member
    Deco Da Man's Avatar
    July 2007
    964 Posts
    Finishing off my Uni assignment: Turtle Graphics.
    Really easy, but very tedious.
    Of all the things to draw with it, this seemed the most appropriate:

    Reply With Quote Edit / Delete Windows 7 Australia Show Events Funny x 20Artistic x 3Friendly x 1Winner x 1Agree x 1 (list)

  35. Post #115

    January 2008
    312 Posts
    Update on my unreleased Pentomino Puzzle game - it now has 118 levels.

    Reply With Quote Edit / Delete Windows 7 Latvia Show Events Artistic Artistic x 2Disagree Disagree x 1 (list)

  36. Post #116
    Gold Member
    Deco Da Man's Avatar
    July 2007
    964 Posts
    Automatic makefiles are wonderful.
    So much time saved: https://dl.dropbox.com/u/319002/Makefile

    I see your duck, and raise you this cactus:


    ... damn it.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Funny Funny x 12 (list)

  37. Post #117
    Gold Member
    Jookia's Avatar
    July 2007
    6,614 Posts
    They are. You haven't lived until you've seen Irrlicht's makefile though. Do they even still have one? Hopefully they've moved to CMake or something, it's popular now.

    Anyway, here's one of my makefiles that uses that method, if it interests anybody:

    # Makefile for a project I hope dies out so I don't have to maintain it.
    
    CCLD = g++
    CFLAGS = -Wall -Wextra -Werror -ansi -pedantic-errors -g
    
    OBJDIR = ./objs
    BINDIR = ./bin
    
    EXAMPLECONFIG = source/example.conf
    DEFAULTCONFIG = source/defaultConfig.h
    
    OBJS = $(OBJDIR)/main.o $(OBJDIR)/config.o $(OBJDIR)/filter.o $(OBJDIR)/hacks.o\
    	$(OBJDIR)/parser.o $(OBJDIR)/scanner.o $(OBJDIR)/menu.o
    
    all:
    	mkdir -p $(OBJDIR) $(BINDIR)
    	make defaultConfig
    	make $(OBJS)
    	$(CCLD) $(OBJS) -o $(BINDIR)/obtap
    
    defaultConfig:
    	@echo "`cat $(EXAMPLECONFIG)`" > $(DEFAULTCONFIG) # Get the config.
    	@sed -i "s|\\\|\\\\\\\\\\\\\\\|g" $(DEFAULTCONFIG) # Escape slashes.
    	@sed -i "s|\"|\\\\\"|g" $(DEFAULTCONFIG) # Escape double quotes.
    	@sed -i "s|^\(.*\)$ |\"\1\\\\\\\n\"\\\|" $(DEFAULTCONFIG)
    	@echo -e "#ifndef DEFAULTCONFIG_H\n#define DEFAULTCONFIG_H\n\n"\
    	"const char* defaultConfig =\n`cat $(DEFAULTCONFIG)`\\\n\"\";\n\n"\
    	"#endif" > $(DEFAULTCONFIG)
    
    clean:
    	rm -rfv $(OBJDIR) $(BINDIR) $(DEFAULTCONFIG)
    
    $(OBJDIR)/%.o : source/%.cpp
    	$(CCLD) $(CFLAGS) -c $< -o $@

    (Spoiler: It did die out)
    Reply With Quote Edit / Delete Linux Australia Show Events

  38. Post #118
    Hates php
    high's Avatar
    May 2006
    2,377 Posts
    Code:
       0: 02 00 07 63 6F 6E 6E 65 63 74 00 3F F0 00 00 00  ...connect.?... 
      16: 00 00 00 03 00 03 61 70 70 02 00 00 00 08 66 6C  ......app.....fl 
      32: 61 73 68 56 65 72 02 00 0D 57 49 4E 20 31 30 2C  ashVer...WIN 10, 
      48: 30 2C 34 35 2C 32 00 06 73 77 66 55 72 6C 06 00  0,45,2..swfUrl.. 
      64: 05 74 63 55 72 6C 02 00 10 72 74 6D 70 3A 2F 2F  .tcUrl...rtmp:// 
      80: 6C 6F 63 61 6C 68 6F 73 74 00 04 66 70 61 64 01  localhost..fpad. 
      96: 00 00 0C 63 61 70 61 62 69 6C 69 74 69 65 73 00  ...capabilities. 
     112: 40 2E 00 00 00 00 00 00 00 0B 61 75 64 69 6F 43  @.........audioC 
     128: C3 6F 64 65 63 73 00 40 A8 EE 00 00 00 00 00 00  odecs.@...... 
     144: 0B 76 69 64 65 6F 43 6F 64 65 63 73 00 40 6F 80  .videoCodecs.@o 
     160: 00 00 00 00 00 00 0D 76 69 64 65 6F 46 75 6E 63  .......videoFunc 
     176: 74 69 6F 6E 00 3F F0 00 00 00 00 00 00 00 07 70  tion.?........p 
     192: 61 67 65 55 72 6C 06 00 00                       ageUrl...
    Oh adobe you retarded company.. who the fuck encodes statically typed field names in utf8?
    How is that utf8? Are you talking about the 0xC3? As that is not part of the string. Its from their stupid packet chunking.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  39. Post #119
    Gold Member
    WeltEnSTurm's Avatar
    December 2007
    1,785 Posts
    This is what my 'makefiles' look like.
    Code:
    #!/usr/bin/pibuilder
    
    compiler g++ -std=gnu++11 -O3 -Wall -Wfatal-errors -c -fmessage-length=0 -fno-pretty-templates
    linker g++
    
    buildpath build
    output bin/engine
    run output
    
    source src
    
    smartlib ../ws
    
    windows {
    	include ../../lib/include
    	library {
    		lib OpenGL32
    		lib GLU32
    		lib GDI32
    		path ../../lib/lib
    		lib GLEW32
    		lib freetype
    	}
    }
    
    linux {
    	include ../../lib/include
    	library {
    		lib GL
    		lib GLU
    		lib GLEW
    		lib X11
    		lib freetype
    	}
    }
    Custom builder, if someone feels the need to try it he should express his needs.
    Reply With Quote Edit / Delete Windows 7 Austria Show Events

  40. Post #120
    Simspelaaja's Avatar
    June 2008
    559 Posts
    I kind of added support for terrain editing to our engine:



    It is very messy and brute-forcy in it's current state. Every time you click, it goes through 512^2 bounding boxes and tests if a ray intersects one of them. If it does, it regenerates 512^2 vertices and recalculates normals.

    In other news, beatiful programming bugs #5326:

    Reply With Quote Edit / Delete Windows 7 Finland Show Events Artistic Artistic x 19 (list)