1. Post #961
    Gold Member
    horsedrowner's Avatar
    January 2009
    3,344 Posts
    Made some improvements to my screenshot tool.

    Most importantly, uploads are done on a separate thread, so you can take multiple screenshots without having to wait for the first to complete. I already had an upload history stack when I implemented undoing, so I only have to implement a user interface to get the uploaded URL of earlier screenshots.

    The filename format also accepts backslashes now. It would probably have resulted in an exception before, but now I upload it properly, taking subdirectories in account. For example, using %cn\%wc\%dt as filename format creates a file with a timestamp as filename in a directory that depends on the window title (or "Desktop"), in a directory that depends on the computer name.

    I also made sure the URL is now properly encoded, rather than simply replacing spaces with "%20".



    I still need a proper icon though :(
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Winner Winner x 4 (list)

  2. Post #962
    Andrew McWatters
    Dennab
    March 2011
    3,878 Posts
    I still need a proper icon though :(
    Use a silk icon for the time being? Those always look nice.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 5 (list)

  3. Post #963
    Gold Member
    horsedrowner's Avatar
    January 2009
    3,344 Posts
    Use a silk icon for the time being? Those always look nice.
    That would work for the tray icon, but not for the application icon.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Agree Agree x 1 (list)

  4. Post #964
    Andrew McWatters
    Dennab
    March 2011
    3,878 Posts
    That's right, darn.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  5. Post #965
    Gold Member
    Instant Mix's Avatar
    October 2006
    4,833 Posts
    I could give it a shot if you wanted?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Friendly Friendly x 4Funny Funny x 1 (list)

  6. Post #966
    Ploo's Avatar
    December 2009
    350 Posts
    following the demise of runescape reflection bots (and my only source of income), i've started working on a color one for a bit of fun.



    beginning work on OCR

    chars

    source


    Starting...
    Loaded L
    Loaded g
    Loaded i
    Loaded n
    Loaded o
    Searching for 'Login' at java.awt.Point[x=652,y=372]
    Seeking L at java.awt.Point[x=652,y=372]
    Found, carry on
    Seeking o at java.awt.Point[x=662,y=372]
    Found, carry on
    Seeking g at java.awt.Point[x=672,y=372]
    Found, carry on
    Seeking i at java.awt.Point[x=682,y=372]
    Found, carry on
    Seeking n at java.awt.Point[x=686,y=372]
    Found, carry on
    Gee, grats
    golly gosh, this is quite fun
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Programming King Programming King x 12Funny Funny x 2Disagree Disagree x 1Winner Winner x 1 (list)

  7. Post #967

    May 2008
    875 Posts
    following the demise of runescape reflection bots (and my only source of income), i've started working on a color one for a bit of fun.



    beginning work on OCR

    chars

    source




    golly gosh, this is quite fun
    How are they preventing bots? Seems to me like it would be more worth your while working around their protection than working on OCR techniques for hacking.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 3 (list)

  8. Post #968

    May 2011
    9 Posts
    What i'm Working on?
    I'm working on don't go to school 3weeks for do school 1 weeks for get 30$.
    (Actually Worked.)
    Reply With Quote Edit / Delete Windows 7 France Show Events Dumb x 23Useful x 1Informative x 1Programming King x 1Optimistic x 1 (list)

  9. Post #969
    Nigey Nige's Avatar
    June 2010
    1,567 Posts
    What i'm Working on?
    I'm working on don't go to school 3weeks for do school 1 weeks for get 30$.
    (Actually Worked.)
    What are you doing
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 17 (list)

  10. Post #970
    TomsonTom's Avatar
    December 2011
    34 Posts
    I heard you like Lua, so I made this.



    I'm amazed how easy it was to implement Lua using LuaInterface for C#. Alright, I now know it works and how it works, so I can rely on Lua in future. I'm learning OpenGL right now and I've got a simple concept of a new game in my mind, so if I'll need scripting for my game, I'd definitely choose Lua.

    (And as I like it, I'm going to add more functions to this simple LuaTest later, e.g. text with colours, images in output, etc. )
    Reply With Quote Edit / Delete Windows 7 Czech Republic Show Events Programming King Programming King x 2Artistic Artistic x 1 (list)

  11. Post #971
    Andrew McWatters
    Dennab
    March 2011
    3,878 Posts
    i came
    Reply With Quote Edit / Delete Windows 7 United States Show Events Optimistic x 8Informative x 5Agree x 2Funny x 2Zing x 2Dumb x 1 (list)

  12. Post #972
    sLysdal's Avatar
    December 2008
    247 Posts
    What i'm Working on?
    I'm working on don't go to school 3weeks for do school 1 weeks for get 30$.
    (Actually Worked.)
    Get $200+ for going to school, every month.
    Would get $1000 if I lived in an apartment. :(
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events Dumb Dumb x 1 (list)

  13. Post #973
    Andrew McWatters
    Dennab
    March 2011
    3,878 Posts
    >2012
    >Get $200+ for going to school, every month
    >Would get $1000 if I lived in an apartment. :(
    >
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 13Dumb Dumb x 1Optimistic Optimistic x 1 (list)

  14. Post #974
    Gold Member
    thomasfn's Avatar
    July 2008
    2,872 Posts
    I heard you like Lua, so I made this.



    I'm amazed how easy it was to implement Lua using LuaInterface for C#. Alright, I now know it works and how it works, so I can rely on Lua in future. I'm learning OpenGL right now and I've got a simple concept of a new game in my mind, so if I'll need scripting for my game, I'd definitely choose Lua.

    (And as I like it, I'm going to add more functions to this simple LuaTest later, e.g. text with colours, images in output, etc. )
    Why _Output? What's wrong with print?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 3 (list)

  15. Post #975
    Andrew McWatters
    Dennab
    March 2011
    3,878 Posts
    Why _Output? What's wrong with print?
    print is for the console. His _Output function prints to that window, he didn't overwrite print.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  16. Post #976
    Gold Member
    thomasfn's Avatar
    July 2008
    2,872 Posts
    Why didn't he override print, then? Considering he has no console.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 7 (list)

  17. Post #977
    Nigey Nige's Avatar
    June 2010
    1,567 Posts
    Wrote myself up a nice little GUI system with butans and panals and highlighting.



    Also got some groundwork done for the 'prospecting' minigame.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Winner Winner x 6Artistic Artistic x 1 (list)

  18. Post #978
    Kamshak's Avatar
    July 2008
    526 Posts
    Why didn't he override print, then? Considering he has no console.
    because he didnt
    big fucking deal

    Edit:
    sorry thomasfn, i just remember that we had this discussion already and it went on for like 3 pages and ofc, no solution was found
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Funny Funny x 12Agree Agree x 3 (list)

  19. Post #979
    Gold Member
    Dr Magnusson's Avatar
    July 2008
    2,848 Posts
    It's actually more like 930$
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events Agree Agree x 2 (list)

  20. Post #980
    Gold Member
    thomasfn's Avatar
    July 2008
    2,872 Posts
    because he didnt
    big fucking deal
    Alright don't get your knickers in a twist, was just curious.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 2Friendly Friendly x 2Dumb Dumb x 1 (list)

  21. Post #981
    TomsonTom's Avatar
    December 2011
    34 Posts
    because he didnt
    big fucking deal
    Exactly.

    Well, I didn't overwrite print, because I planned to add other functions like OutputImage(filePath), OutputLink(url), SetOutputColour(r,g,b), etc. And the most important thing, ladies and gentlemen: I did't realize that I could overwrite print. Is it enough?
    Reply With Quote Edit / Delete Windows 7 Czech Republic Show Events Friendly Friendly x 2 (list)

  22. Post #982
    Gold Member
    BlkDucky's Avatar
    May 2008
    6,162 Posts
    Wrote myself up a nice little GUI system with butans and panals and
    complete with the classic nige artstyle.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 7Agree Agree x 3 (list)

  23. Post #983
    Audio Enthusiast
    Tezzanator92's Avatar
    June 2006
    2,815 Posts
    Wrote myself up a nice little GUI system with butans and panals and highlighting.



    Also got some groundwork done for the 'prospecting' minigame.
    Reminds me of skyroads.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 2 (list)

  24. Post #984
    open.gl
    Overv's Avatar
    February 2007
    6,848 Posts
    Time for a Lua interpreter written in Lua.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Funny x 31Agree x 3Winner x 3Programming King x 2Optimistic x 1Artistic x 1 (list)

  25. Post #985
    Andrew McWatters
    Dennab
    March 2011
    3,878 Posts
    Time for a Lua interpreter written in Lua.
    http://lua-users.org/wiki/LuaInterpreterInLua

    Edited:

    people think of everything, don't they

    Edited:

    I also remember someone writing a Lua module to use Lua in Lua, you could open states in Lua, etc. Crazy shit.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 5 (list)

  26. Post #986
    Gold Member
    ralle105's Avatar
    October 2005
    4,636 Posts
    Time for a Lua interpreter written in Lua.
    Write a Lua VM in Lua and I'll be impressed
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events Funny Funny x 7 (list)

  27. Post #987
    open.gl
    Overv's Avatar
    February 2007
    6,848 Posts
    http://lua-users.org/wiki/LuaInterpreterInLua

    Edited:

    people think of everything, don't they

    Edited:

    I also remember someone writing a Lua module to use Lua in Lua, you could open states in Lua, etc. Crazy shit.
    That's just an implementation of the interpreter application, not the Lua lexer/parser/interpreter.

    Edited:

    After open.gl maybe.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Optimistic Optimistic x 3 (list)

  28. Post #988
    Audio Enthusiast
    Tezzanator92's Avatar
    June 2006
    2,815 Posts
    You could have it interpret its own code, Luaception.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 6 (list)

  29. Post #989
    Andrew McWatters
    Dennab
    March 2011
    3,878 Posts
    Write a Lua VM in Lua and I'll be impressed
    or LuaJIT in Lua, then ask Garry to implement it into that game of his and watch it still break
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 4 (list)

  30. Post #990
    Nigey Nige's Avatar
    June 2010
    1,567 Posts
    complete with the classic nige artstyle.
    I believe the kids these days are calling it post-nigé.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 21 (list)

  31. Post #991
    Team Hamster
    Mordi's Avatar
    January 2012
    325 Posts
    Reply With Quote Edit / Delete Windows 7 Norway Show Events Funny x 23Winner x 4Informative x 2Programming King x 1Late x 1Artistic x 1 (list)

  32. Post #992
    Gold Member
    Richy19's Avatar
    May 2010
    5,745 Posts
    I'm so productive.
    Would you mind if I stole your graphics? (ie can you upload them)
    I need some placeholder graphics and i love the portal stuff in mari0
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Friendly Friendly x 1 (list)

  33. Post #993
    ichiman94's Avatar
    August 2010
    1,293 Posts
    Nothing to show in screenshots...
    I didn't have much time today to code, so I made a map class and a mapfile interpreter quickly, added new (very useful) functions for the base class, setup-ed a git repo, already having 5 commits in the experimental branch, and updated the makefile so it compiles with the oh-so useful debug symbols.
    Basicaly it just works.
    (Eventualy, the helper functions of the child classes will contain a lot of if-else statements, this is the best design I can think of yet)
    Reply With Quote Edit / Delete Hungary Show Events Programming King Programming King x 1 (list)

  34. Post #994
    Gold Member
    Darwin226's Avatar
    January 2009
    5,177 Posts
    Would you mind if I stole your graphics? (ie can you upload them)
    I need some placeholder graphics and i love the portal stuff in mari0
    His graphics?
    Reply With Quote Edit / Delete Windows 7 Croatia Show Events Funny Funny x 20Agree Agree x 3 (list)

  35. Post #995
    Gold Member
    Richy19's Avatar
    May 2010
    5,745 Posts
    His graphics?
    Well I know the portal stuff wasnt done y him, but i dont know who did it and he is the easiest person to ask
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Dumb Dumb x 2 (list)

  36. Post #996
    Gold Member
    Icedshot's Avatar
    April 2010
    2,761 Posts
    Mwahaha. The first time my planets have looked actually 3d!

    Reply With Quote Edit / Delete Windows Vista United Kingdom Show Events Artistic Artistic x 12Winner Winner x 3Agree Agree x 1 (list)

  37. Post #997
    Gold Member
    BlkDucky's Avatar
    May 2008
    6,162 Posts
    Reminds me of skyroads.
    suddenly nostalgia. That game was amazing.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 3 (list)

  38. Post #998
    Audio Enthusiast
    Tezzanator92's Avatar
    June 2006
    2,815 Posts
    Blake stone, too.

    I'd love to make a game with Mode 13 style graphics or similar.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  39. Post #999
    Gold Member
    raBBish's Avatar
    March 2007
    2,598 Posts
    I made a Lua hook system in C++. I did this when I realized that my old method of calling "call" function from a Lua module went between C++ and Lua five times for each call. (get "require", call require("hook"), get "hook.call", call hook.call("event", args))

    class hook
    {
    	static std::map<std::string, std::map<std::string, luabind::object>> hooks_;
    public:
    	static void add(std::string const &event, std::string const &id,
    		luabind::object const &fun)
    	{
    		hooks_[event][id] = fun;
    	}
    
    	static void remove(std::string const &event, std::string const &id)
    	{
    		hooks_[event].erase(id);
    	}
    
    	static void clear()
    	{
    		hooks_.clear();
    	}
    
    	static int call(lua_State *L, std::string const &event)
    	{
    		int top = lua_gettop(L);
    		auto ev_list = hooks_[event];
    		for (auto it = ev_list.cbegin(); it != ev_list.cend(); ++it)
    		{
    			it->second.push(L);
    
    			// We don't need the event name
    			for (int i = 2; i <= top; ++i)
    			{
    				lua_pushvalue(L, i);
    			}
    
    			int r = lua_pcall(L, top - 1, LUA_MULTRET, 0);
    			if (r != 0)
    			{
    				msg << warning << "Error in hook: "
    					<< lua_tostring(L, -1) << std::endl;
    
    				continue;
    			}
    			int nres = lua_gettop(L) - top;
    			if (nres > 0)
    			{
    				return nres;
    			}
    		}
    
    		return 0;
    	}
    };

    I can't wait until variadic templates become more popular (and actually implemented in VS), so I wouldn't need to use Lua for multiple arguments.

    e: Usage:
    lua_pushstring(L, "hi");
    iris::lua::hook::call(L, "Paint");

    hook.add( "Paint", "test", function( str )
    	print( "hi" )
    end )
    Reply With Quote Edit / Delete Windows 7 Finland Show Events Useful Useful x 1 (list)

  40. Post #1000
    Gold Member
    LuaStoned's Avatar
    September 2007
    1,296 Posts
    I made a Lua hook system in C++. I did this when I realized that my old method of calling "call" function from a Lua module went between C++ and Lua five times for each call. (get "require", call require("hook"), get "hook.call", call hook.call("event", args))

    class hook
    {
    	static std::map<std::string, std::map<std::string, luabind::object>> hooks_;
    public:
    	static void add(std::string const &event, std::string const &id,
    		luabind::object const &fun)
    	{
    		hooks_[event][id] = fun;
    	}
    
    	static void remove(std::string const &event, std::string const &id)
    	{
    		hooks_[event].erase(id);
    	}
    
    	static void clear()
    	{
    		hooks_.clear();
    	}
    
    	static int call(lua_State *L, std::string const &event)
    	{
    		// We don't need the event name
    		int top = lua_gettop(L) - 1;
    		auto ev_list = hooks_[event];
    		for (auto it = ev_list.cbegin(); it != ev_list.cend(); ++it)
    		{
    			it->second.push(L);
    
    			for (int i = 1; i <= top; ++i)
    			{
    				lua_pushvalue(L, i);
    			}
    
    			int r = lua_pcall(L, top, LUA_MULTRET, 0);
    			if (r != 0)
    			{
    				msg << warning << "Error in hook: "
    					<< lua_tostring(L, -1) << std::endl;
    
    				continue;
    			}
    			int nres = lua_gettop(L) - top;
    			if (nres > 0)
    			{
    				return nres;
    			}
    		}
    
    		return 0;
    	}
    };

    I can't wait until variadic templates become more popular (and actually implemented in VS), so I wouldn't need to use Lua for multiple arguments.

    e: Usage:
    lua_pushstring(L, "hi");
    iris::lua::hook::call(L, "Paint");

    hook.add( "Paint", "test", function( str )
    	print( "hi" )
    end )
    Nice.

    I got my buildbot for minecraft finished, pulls changesets and compiles the jar on linux!
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Late Late x 1 (list)