fluffymark: (Default)
[personal profile] fluffymark
Waaaaaaaah! I want I want I want. [livejournal.com profile] laumiere is very evil for introducing me to the wonders of Gloomcookie. Now I need to buy for myself. Thats despite me already having spent my spare money by accidentally buying the t.a.T.u. album earlier this week. Where do i find it? Forbidden planet and comics shops, yes, but i doubt I'm going into central London this week. Will large bookshops sell it? I'm going to diiiiiiiiiiiie without it.

Managed to miss a swathe of social engagements this weekend (Vicar alex's birthday, Tenebrae, Picnic&Piracy and Gay Pride march) due to feeling ill and stoppy and unsociable. Feeling a bit insecure recently, which is odd, as I've been feeling the most loved in many months, in a general sort of way, not by anyone in particular. I blame all you wonderful people for making me feel great, you're all wonderful! *huuuuuugs*

I vanquished evil today. I purged Elvira ([livejournal.com profile] snow_leopard's computer) of virtually everything. And she appears to be behaving now. Or maybe the evil spirits that got exorcised have passed to jellyfish - as later the impossible happened - Linux crashed!! Been using Linux for 7 years now, and thats the first time I've seen a Linux crash.

For anyone interested, my game apricots is now version 0.2.4, and compiles under Linux and Windows (assuming you have a compiler and the SDL libraries), with optional audio. I did the cunning thing of putting it on freshmeat.net and now a bunch of geeky Germans appear to be debugging it for me. I'm such a lazy sod. :)

Many many huggles to doseybat who's had her passport stolen while in Moscow. *huuuuuuuugs*

Date: 2003-07-27 07:46 pm (UTC)
From: [identity profile] emarkienna.livejournal.com
I did the cunning thing of putting it on freshmeat.net and now a bunch of geeky Germans appear to be debugging it for me. I'm such a lazy sod. :)

Ah the wonders of open source:) I had someone from Russia add some features to one of my programs, including ones which I wasn't sure how to do, or required a lot of work:)

sourceforge.net (http://sourceforge.net) is a good place if you want to have more than one person working on a project.

Date: 2003-07-28 03:47 pm (UTC)
From: [identity profile] emarkienna.livejournal.com
A new bug has cropped up, apparently with multiple monitors, SDL fullscreen mode speads out the display between all the monitors. This is not good. Any idea how to keep it on one monitor?

Hmm no idea I'm afraid. I assumed that handling what full-screen applications do should be the responsibility of whatever software handles the multi-screen stuff, but maybe it doesn't work like that. I don't know if it's possible to set the behaviour from the application, or how to do so.

Date: 2003-07-28 04:38 am (UTC)
From: [identity profile] laumiere.livejournal.com
*bwah haaa haa*

The evil Gloomcookie army grows....

?

Date: 2003-07-29 01:42 am (UTC)
From: [identity profile] alektoeumenides.livejournal.com
You mean you've never come across gloomcookie before? Deary me. I've never been too impressed by it but JTHM is definately growing on me the more I read it, which is rather worrying.

Re: ?

Date: 2003-08-05 03:35 pm (UTC)
From: [identity profile] alektoeumenides.livejournal.com
I don't have gloomcookie, never liked it enough to read it, sorrie m'dear

the apricots

Date: 2003-07-29 08:31 am (UTC)
From: [identity profile] daevas.livejournal.com
I just tried to compile your game under Windows and it fails to find the condefs.h

I've looked on the google but have so far failed to find out exactly what that library does and why I don't have it on my system!

Re: the apricots

Date: 2003-07-29 09:00 am (UTC)
From: [identity profile] daevas.livejournal.com
I'm using the Visual Studio 6.0 and the file I'm compiling is the apricots.cpp. You've got a switch on top of that file that says if the system is windows include condefs.h

Re: the apricots

Date: 2003-07-29 02:22 pm (UTC)
From: [identity profile] emarkienna.livejournal.com
As [livejournal.com profile] fluffymark said, at the moment I've only been using Borland to compile it. Unfortunately Borland requires stuff to be stuff in the main source file to tell it which other files belong to the same project (that's all the "USEUNIT" stuff) which is a bit of an annoying way of doing things.

I have a copy of Visual C++ lying round so I'll try to see if I can get it to work.. actually the condefs.h file appears to do very little, apart from #define-ing the USEUNIT etc stuff so that the compiler doesn't treat it as code.

Re: the apricots

Date: 2003-07-29 03:43 pm (UTC)
From: [identity profile] emarkienna.livejournal.com
Got it to work now. Three things are needed:
  • Comment out the bit for the first "#ifdef _WIN32" (or changing it to "#ifdef BORLAND" will mean it'll compile with Borland and VisualStudio)

  • VisualStudio needs windows.h for apricots.cpp, but you have to be careful when you #include it because it seems to #define min/max functions, which then confuses the min/max member functions of the shape class. However, we do need these min/max functions to be defined at some point, because they're used by draw_dither (it seems that for Borland, these are in stdlib as functions when in C++ mode, and I presume Linux does a similar sensible thing - under VisualStudio, I can only find them as #defines). So you need to #include
[Error: Irreparable invalid markup ('<windows.h>') in entry. Owner must fix manually. Raw contents below.]

Got it to work now. Three things are needed:<ul><li>Comment out the bit for the first "#ifdef _WIN32" (or changing it to "#ifdef BORLAND" will mean it'll compile with Borland and VisualStudio)</li>
<li>VisualStudio needs windows.h for apricots.cpp, but you have to be careful when you #include it because it seems to #define min/max functions, which then confuses the min/max member functions of the shape class. However, we do need these min/max functions to be defined at some point, because they're used by draw_dither (it seems that for Borland, these are in stdlib as functions when in C++ mode, and I presume Linux does a similar sensible thing - under VisualStudio, I can only find them as #defines). So you need to #include <windows.h> in apricots.h, below the other includes (in particular, below shape.h). Alternatively, you can get away with only putting it in apricots.cpp, after apricots.h has been included, but you then need to provide definitions of min/max for draw_dither. Another possibilty would be to rename the min/max functions in the shape class. At least, I think this is all that's going on.. maybe there are better ways round the problem too.</li>
<li>VisualStudio is awkward about the scope of variables in a for loop - so the following code:<pre>
for(int i=0;i<10;i++) {
// blah
}
for(int i=0;i<10;i++) {
// more blah
}
</pre>isn't allowed. You either need to enclose the for loops inside an extra {}, or replace with for(i=0;...) and have an int i; beforehand. Or a quick cunning method is to stick:<pre>
#ifndef for
#define for if (0) {} else for
#endif
</pre>somewhere. Perhaps a bit hacky, but it fixes the problem without having to mess up various bits of the code.</li></ul>That seems to be enough to get it to work for me.

If you want, <user site="livejournal.com" user="fluffymark">, I'll send a set of files that compile with both Borland and VisualStudio (I'll also include the project files/workspaces - this is particularly useful for Borland, due to the arsey way it works when you set up a project.. it creates its own apricots.cpp file for the main project file, which you then have to overwrite with the real apricots.cpp file; I don't think it lets you select an existing cpp file to use as the project file). And I can do a binary too if you want that.

Re: the apricots

Date: 2003-07-30 01:51 pm (UTC)
From: [identity profile] emarkienna.livejournal.com
I'm not using windows.h ??? But then maybe thats because I've changed WinMain() back to main() to get it to compile, which appears to work.

I only seemed to need it because of WinMain, so yes. Though I can't seem to get it to work with main(). I tried doing the project as both an application and a console application - I think the problem is that SDL is supposed to redefine main as something else, and it supplies its own WinMain, but this doesn't appear to work for me (it didn't on Borland either).

Re: the apricots

Date: 2003-07-30 06:38 pm (UTC)
From: [identity profile] emarkienna.livejournal.com
Ah, oops, I'd forgotten about SDLmain.lib. It works with that. Also I've found out how to get it working with just using main() in Borland - I had previously tried it with SDLmain.lib, but the problem is it's in the wrong format for Borland, and it's not possible to generate a correct one like it is with SDL.lib. I finally found that you're supposed to add SDL_main.c (ie, from the SDL source) to the project.

You might as well get rid of all the Borland specific stuff now, since as I explained in my email, I've also found it's easy enough to stick the Borland-project-related-data in a separate file. And I can include that source file and Borland project if you like, but they can just as easily be generated by whoever wants to compile it (well, assuming they already know enough about SDL and Borland, unlike me;), like you haven't included the VisualC project files either.

Re: the apricots

Date: 2003-07-29 09:27 am (UTC)
From: [identity profile] daevas.livejournal.com
I'm using the Visual Studio 6.0 and the file I'm compiling is the apricots.cpp. You've got a switch on top of that file that says if the system is windows include condefs.h

randomness is always fun

Date: 2003-09-29 01:00 pm (UTC)
From: [identity profile] stranger-inside.livejournal.com
lol, just heard of gloomcookie.. i was serchin for it and ur journal popped up, lol..

yea, i dont kno much about gloomcookie, but i still say jthm is and will always be #1 in my heart. ^_^

Re: randomness is always fun

Date: 2003-10-29 09:07 am (UTC)
From: [identity profile] yukihada.livejournal.com
you like gloomcookie especially the beginning then I must recommend Ted Naifeh's Courtney Crumrin series from Oni press. Already they have one graphic novel called Courney Crumrin and the Night Things. After that I would recommend Serena Valentino's other series Nightmares and Fairy Tales that is I'm pretty sure from Slave Labor Graphics like Gloomcookie. I'm sure your local comic book store would be glad to help you locate the back issues or you can order online at the SLG homepage or Oni homepage (or *shiver* get it at Snottopic.) Hope you like the recs...

Profile

fluffymark: (Default)
fluffymark

April 2017

S M T W T F S
      1
2345678
910111213 1415
16171819202122
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 29th, 2025 10:33 am
Powered by Dreamwidth Studios