What are you working on? V4 (HTML ISN'T PROGRAMMING)
2,003 replies, posted
I have successfully made... a box with a man inside who can jump around! And some other physics based boxes to hit and jump on! Huzzah!
edit: 3:30am coding session: over
WTF indeed, this has to be the worst day of my life.
And actually, I think I'll invest my insomnia into some late night coding..
[QUOTE='-[ Fizzadar ]-;18073544']I have successfully made... a box with a man inside who can jump around! And some other physics based boxes to hit and jump on! Huzzah!
edit: 3:30am coding session: over[/QUOTE]
3:30am? pffff. it's fucking 7 am here.
[QUOTE=ddrl46;18063403]Damn, i wish it existed for vista :(.[/QUOTE]
Get SkinStudio 5 and turn the msstyles into a WindowBlinds theme.
SkinStudio 6 lost the feature.
[QUOTE=cas97;18067915]PS: Guy making the desktop: Use jQuery and a window plugin...[/QUOTE]
Already thought about it, but was too lazy yesterday to implement it.
[b]Edit:[/b] Found a cheezy way to add movable windows(totally bullshit actually, but well I don't get jQuery yet), it's using <iframe>'s, but it works. I never really planned on keeping this site W3C compatible. It should look like made in the 90's, that's why I'm also using that kind of "old" style.
Anyway, here's the current: [url]http://torekk.bplaced.net/[/url]
Now I just need to add a little function to check if the window is going out of the browser display. :buddy:
[b]Edit2:[/b] Seems like it's now only working in Opera, atleast when I tested.
[b]Edit3:[/b] When you include a external javascript, never try to just use <script />, ALWAYS add an </script> to the end...
[b]Edit4:[/b] As it looks like, it works in Opera 10, FireFox 3.5, but not in IE8. Well, I don't really care as I'm going to turn this into something else, not really online based.
It works on chrome.
Working in Firefox 3.0.14.
I had an awesome Idea today, instead of just buying the parts to a computer and hey presto your computer upgrades but a grid, where you can add different parts and link them up. I'll get a MS Paint of what I mean.
[img]http://filesmelt.com/downloader/pcbuild.png[/img]
Yeh its rubbish, but I know what I want it to be like in my head.
I always think about what I could write.
I got this idea about an awesome, user friendly program which does never before seen things in a cool way, while still being fully customizable and supporting almost every OS.
Haven't developed the idea any further though.
Looks and behaves quite nicely Torekk, I was really surprised when I viewed your script; I was expecting to see some serious jQuery spaghetti :buddy:
[QUOTE=voodooattack;18076332]Looks and behaves quite nicely Torekk, I was really surprised when I viewed your script; I was expecting to see some serious jQuery spaghetti :buddy:[/QUOTE]
Only problem I saw was when you moved the window lower than the task bar, it makes the page bigger.
Same with chrome, I also noticed that it starts to select text all over the page when you drag the window after you do that.
Yeah and that's where the problems start. I thought about using dyndiv now, kinda like jQuery but easier to implement, and it has a "body limit" function, so you can't move the window out of the body.
[b]Edit:[/b] Well, I gave the taskbar and the window the style attribute position: fixed;. Now you can still move the window out, but it won't stretch the page. :buddy:
Just checked it out, seems like the perfect tool for what you're trying to do.
[QUOTE=voodooattack;18072317]Fuck...
Just got back home.. I was writing some clever post about Jallen's mudkip comment, it was about 4:15 PM here when I heard a scream coming from outside..
When I went to the apartment next door I found a woman on fire, and her husband was the one screaming; went back home, got a blanket and tried to put it off, and after what seemed like forever I somehow managed to slip into the apartment (she was blocking the door and I had to jump over her body) and engulf her whole with the blanket, but she died shortly afterwards; her husband said she set herself on fire, and let's summarize what happened next: The ambulance was late (typical), husband took off, police came and started asking questions and searched for him, and then, suddenly the place was filled with officers and all kinds of officials, meanwhile, her two daughters arrived at the scene and starting moaning like crazy, me and 2 others were interrogated, then they took us to the office attorney general, where we testified and signed more paperwork.
Now I'm finally back home; it's 3:40 am, they still haven't found the husband, and I've took an oath to never reply to a post by Jallen EVER again. :ohdear:[/QUOTE]
What the shit.
[QUOTE=voodooattack;18076332]Looks and behaves quite nicely Torekk, I was really surprised when I viewed your script; I was expecting to see some serious jQuery spaghetti :buddy:[/QUOTE]
[QUOTE=voodooattack;18076379]Same with chrome, I also noticed that it starts to select text all over the page when you drag the window after you do that.[/QUOTE]
[QUOTE=voodooattack;18076491]Just checked it out, seems like the perfect tool for what you're trying to do.[/QUOTE]
And continues his business as usual as if he hadn't just seen a woman on fire...
Did that seriously happen?
Haha owned.
[QUOTE=Jallen;18076700]What the shit.
And continues his business as usual as if he hadn't just seen a woman on fire...
Did that seriously happen?[/QUOTE]
Well you have to consider tha-
HOLY SHIT EVERYONE'S ON FIRE OH FUCK OH FUCK, WHY'D I RESPOND TO JALLEN, WHYYYYYYYYYYYYYYYY
Feeling inspired to add HTML logging to my utility library.
Also working on a source engine plugin that adds telnet remote console support.
My oath still stands.
It did happen, and this is my way of coping with this fucking wretched reality of ours, just forget and ignore the whole thing and do "daysOfMyLife--;".
My philosophical/mental stance allows me to do so.
[QUOTE=voodooattack;18077112]My oath still stands.
It did happen, and this is my way of coping with this fucking wretched reality of ours, just forget and ignore the whole thing and do "daysOfMyLife--;".
My philosophical/mental stance allows me to do so.[/QUOTE]
what
[QUOTE=Cosmic Rock;18077122]what[/QUOTE]
Care to elaborate?
[QUOTE=voodooattack;18077147]Care to elaborate?[/QUOTE]
"daysOfMyLife--;".
That's one bizarre coding reference.
[editline]12:42PM[/editline]
Also why so dramatic? It sounded something like MY MOMMY BEATS ME SO I PLAY WORLD OF WARCRAFT.
[QUOTE=Cosmic Rock;18077172]"daysOfMyLife--;".
That's one bizarre coding reference.[/QUOTE]
Well, it's the closest thing to what I was thinking, day never existed/it all happened to somebody else and I was just there watching through their eyes/etc.
[QUOTE=Cosmic Rock;18077172]Also why so dramatic? It sounded something like MY MOMMY BEATS ME SO I PLAY WORLD OF WARCRAFT.[/QUOTE]
I'm always dramatic after a life-changing experience, nice WoW reference by the way, very mature.
Now back on topic:
Thanks to the coding spree, I nearly finished the XML parser, and after reading through the docs for [url=http://jsoncpp.sourceforge.net/]JsonCPP[/url], I'm now thinking of adding JSON support as a parallel method of storing the data for the bots.
That seems much easier to integrate into my project, one will eventually have to go though, I'll experiment with both some more and then decide.
I advise you pick [B]one[/B] method and stick to it. There's really no need for 2 formats you can write a bot in (It's just double the work, bugs and maintenance for you).
[QUOTE=r4nk_;18077482]I advise you pick [B]one[/B] method and stick to it. There's really no need for 2 formats you can write a bot in.[/QUOTE]
That's the plan, I'll experiment with both and decide which one I'm going to stick to.
JSONCPP seems to be easier to change later, since it's easier to interface with (less loops and error checking, etc); on the other hand XML is easier to understand for the user (or at least that's my opinion), tough choice.
Been working on a state system to solve all my problems. It's a challenge getting it so you can add states without any engine-side code.
[cpp]#include <JE3D.h>
using namespace JE3D;
class mainMenuState
: public virtual IState
{
public:
mainMenuState(IStateLayer* layer, IState* parentState = 0)
: IState(layer, parentState)
{
}
~mainMenuState()
{
}
virtual void onRun()
{
printf("MAINMENU %i", children.size());
}
};
class subMenuState
: public virtual IState
{
public:
subMenuState(IStateLayer* layer, IState* parentState = 0)
: IState(layer, parentState)
{
}
~subMenuState()
{
}
virtual void onRun()
{
printf("SUBMENU");
}
};
class subMenuState2
: public virtual IState
{
public:
subMenuState2(IStateLayer* layer, IState* parentState = 0)
: IState(layer, parentState)
{
}
~subMenuState2()
{
}
virtual void onRun()
{
printf("SUBMENU2");
}
};
int main(void)
{
engineProperties* properties = new engineProperties;
properties->windowTitle = "DISASTERS IN SPPAAACCCCEEEEE";
properties->width = 1024;
properties->height = 768;
properties->FOV = 45;
IEngineLayer* layer = createEngineLayer(EVideoDriverOpenGL, properties);
delete properties;
if(layer == 0)
return false;
mainMenuState* mainState = new mainMenuState(layer->getStateLayer());
subMenuState* subState = new subMenuState(layer->getStateLayer(), mainState);
subMenuState2* subState2 = new subMenuState2(layer->getStateLayer(), mainState);
layer->getStateLayer()->setCurrentState(mainState);
layer->run();
mainState->drop();
subState->drop();
subState2->drop();
layer->drop();
getchar();
return false;
}[/cpp]
That's three states, as you can imagine, two being the parent of mainState which is the currentState of the state manager.
[cpp] bool run(void)
{
this->onRun();
for(unsigned int i = 0; i < children.size(); i++)
children[i]->run();
return false;
}[/cpp]
Why not use a LIFO stack of states?
pseudo code:[cpp]
m_states.push(mainMenu);
// somewhere in mainMenu:
btnClick()
{
this->getParentLayer()->push(myNewState);
}
// and the main loop:
while (running)
{
/* handle events, etc
....
*/
IState* current = m_states.top();
current->Render();
}[/cpp]