• What are you working on? V4 (HTML ISN'T PROGRAMMING)
    2,003 replies, posted
In the same language as i said before.
[QUOTE=ddrl46;17930728]In the same language as i said before.[/QUOTE] Sorry, not paying attention. Just scrolled down and that caught my attention
Just wrote a lua script that uses LuaSocket to grab server info from Source Servers. There are still some bugs, but it works pretty well so far. I've learned a lot about datatypes and how to handle bytes in the process C: Here's how the output looks when printing the table to console: [img]http://errur.com/New/Uploads/62.png[/img] Here's the code if anyone wants it: [url]http://errur.com/New/Uploads/63.rar[/url]
trying to do a music player, so far i don't have much but it's coming along [img]http://filesmelt.com/downloader/Music_Player_copy.png[/img]
Tags now works. Spent half an hour searching for bugs, and then realized I was missing an 's' because a field was called 'tag', not 'tags'. And yes, I fully deserve whatever dumb rating I get from this...
Wonderful! I have to rewrite my entire base class, because, without my realizing it, it became a god object. oh joy :/
Making a unit test for GWEN, going through checking functionality on all controls.. [img]http://img230.imageshack.us/img230/2166/uncideo.png[/img] [editline]10:16PM[/editline] Code for that window [cpp]class UnitTest : public Gwen::Controls::WindowControl { public: GWEN_CONTROL( UnitTest, Gwen::Controls::WindowControl ); void PrintText( const Gwen::UnicodeString& str ); private: Gwen::Controls::TabControl* m_TabControl; Gwen::Controls::TextBox* m_TextOutput; };[/cpp] [cpp]GWEN_CONTROL_CONSTRUCTOR( UnitTest ) { SetTitle( L"GWEN Unit Test" ); m_TabControl = new Controls::TabControl( this ); m_TabControl->Dock( Pos::Fill ); m_TabControl->SetMargin( Margin( 2, 2, 2, 2 ) ); m_TextOutput = new Controls::TextBox( this ); m_TextOutput->Dock( Pos::Bottom ); m_TextOutput->SetHeight( 60 ); m_TextOutput->SetMultiline( true ); ADD_UNIT_TEST( Label ); ADD_UNIT_TEST( Checkbox ); ADD_UNIT_TEST( Button ); PrintText( L"Unit Test Started.\n" ); } void UnitTest::PrintText( const Gwen::UnicodeString& str ) { m_TextOutput->InsertText( str ); m_TextOutput->Scroller()->ScrollToBottom(); }[/cpp]
I like the design of the scrollbars, not sure what it is about them.
The scrollbars haven't been designed yet - they're just using the default button style :)
That looks very unfriendly if you wanted to expose GUI functionality to scripts.
Why?
I've made a map generator for my 3D engine because I plan to make every level generated randomly when you start the game. This means every time you play you get a different world. Here is the map generator in progress: [img]http://www.robertandsherman.co.uk/images/3dgen1.png[/img] And here is the map produced in-game: [img]http://www.robertandsherman.co.uk/images/3dgen2.png[/img] The maps are currently stored as .png files, and information about each tile in the map is stored like this: Pixel colour: 0x012345 First digit (0): Floor height Second digit (1): Ceiling height Last 4 digits (2345): Reference to a tile style, a set of textures (floor, ceiling and 4 walls) I plan to not store the maps at all, but just save the seeds used to generate them.
[QUOTE=garry;17933897]Why?[/QUOTE] Because it's macro and raw pointer hell. Oh, and how do you do event callbacks?
I don't get how pointers make stuff hard to script. If you can't bind something because it uses pointers there's something wrong with the scripting language. Event callbacks are simple function pointers. The macros are for the sake of neatness. There's nothing complicated about them. [cpp] #define GWEN_CONTROL( ThisName, BaseName )\ public:\ typedef BaseName BaseClass;\ ThisName( Gwen::Controls::Base* pParent ) [/cpp]
[QUOTE=garry;17934145]I don't get how pointers make stuff hard to script. If you can't bind something because it uses pointers there's something wrong with the scripting language. Event callbacks are simple function pointers. The macros are for the sake of neatness. There's nothing complicated about them. [cpp] #define GWEN_CONTROL( ThisName, BaseName )\ public:\ typedef BaseName BaseClass;\ ThisName( Gwen::Controls::Base* pParent ) [/cpp][/QUOTE] Box me if i'm wrong, but isn't this exactly how valve implimented VGUI2? By that, I don't mean just that macro, but the grand design.
Yeah, how else would it work though?
Nice work, Garry!
[QUOTE=garry;17934145]I don't get how pointers make stuff hard to script. If you can't bind something because it uses pointers there's something wrong with the scripting language.[/quote] Not because it uses pointers, but because it's raw pointer hell. Who owns the pointers? [quote] Event callbacks are simple function pointers. [/quote] Such as?
Garry when do you plan on releasing it? Also if it is open source, you should setup an svn or git :P.
[QUOTE=nullsquared;17934690]Not because it uses pointers, but because it's raw pointer hell. Who owns the pointers? Such as?[/QUOTE] I don't get why you're being so difficult with him. Your issues with his code seem so empty :I
[QUOTE=Archive;17935671]I don't get why you're being so difficult with him. Your issues with his code seem so empty :I[/QUOTE] Why? Because I don't suck garry's dick like all of you. Instead I actually like to talk about valid issues.
Added filters to search : [url]http://welovebrew.kerplunc.com/search?s=tea&countryfilter=GB&alcofilter=92[/url] Fiddled with other bits and pieces, including the new brew browser, which has a proper logo/title. No idea what to do next.
[QUOTE=nullsquared;17935692]Why? Because I don't suck garry's dick like all of you. Instead I actually like to talk about valid issues.[/QUOTE] uhh, I may be the dumbest person up in this bitch, but I don't see any problems with his code... also I spot no dick-suckery
[QUOTE=nullsquared;17935692]Why? Because I don't suck garry's dick like all of you. Instead I actually like to talk about valid issues.[/QUOTE] That's kind of arrogant to assume that we're just kissing his ass. And your talking is hardly of value, your issues are just random bitching on things that you prefer over general opinion. :\
[QUOTE=Fizzadar.;17935747]Added filters to search : [url]http://welovebrew.kerplunc.com/search?s=tea&countryfilter=GB&alcofilter=92[/url] Fiddled with other bits and pieces, including the new brew browser, which has a proper logo/title. No idea what to do next.[/QUOTE] Wow. It looks like it must have taken a long time to add those flag icons to the dropdown box. Problem with the search bar: It's cutting off the bottom of the p and y when it says "Search by name, company, etc.". "Search for Brew" is also not horizontally centered. Using Firefox by the way. Amazing that you did it all in one query. How did you count queries?
[QUOTE=bl4h;17936267]Wow. It looks like it must have taken a long time to add those flag icons to the dropdown box. Problem with the search bar: It's cutting off the bottom of the p and y when it says "Search by name, company, etc.". "Search for Brew" is also not horizontally centered. Using Firefox by the way. Amazing that you did it all in one query. How did you count queries?[/QUOTE] Just wrote a function like (typed into browser, excuse the lack of indent): [code] dbQuery( $query ) { global $queries; $quieries++; return mysql_query( $query ) } [/code] Although, in reality I actually wrote it to do the query, and put the results into an array so I don't have to loop so often. The actual query is the complicated part of search, and it's all one big query. The "example" query is: [code] SELECT brews.name AS brewname, companies.name AS companyname, categories.name as categoryname, MATCH( brews.name ) AGAINST( "%aids%" ) + MATCH( companies.name ) AGAINST( "%test%" ) + MATCH( categories.name ) AGAINST( "%test%" ) AS score FROM brews LEFT JOIN companies ON brews.companyid = companies.id LEFT JOIN categories ON brews.categoryid = categories.id WHERE( MATCH( brews.name ) AGAINST( "%aids%" ) OR MATCH( companies.name ) AGAINST( "%test%" ) OR MATCH( categories.name ) AGAINST( "%test%" ) ) ORDER BY score DESC [/code] Filters just stick a simple extra WHERE on the end. I'll check out the css/html issues, I'm using FF but on Mac, so it all looks fine here. Functionality first, then form! Finally the country list I found free on some site, so along with the iconset, it was just a matter of writing 6 lines of code to display it all with the javascript for each one to update the backgrounds and so on.
How are you guys able to get good website ideas in a short time?
[QUOTE=The Inzuki;17936875]How are you guys able to get good website ideas in a short time?[/QUOTE] short? :v:
[QUOTE=walama;17936924]short? :v:[/QUOTE] Well, I don't think people spend 7 months thinking of a site idea like me.
[QUOTE=The Inzuki;17937168]Well, I don't think people spend 7 months thinking of a site idea like me.[/QUOTE] Why would you spend 7 months? :( Have a heart.
Sorry, you need to Log In to post a reply to this thread.