Jump to content
The Dark Mod Forums

Itches, Glitches & Anything Else...


Recommended Posts

OrbWeaver, do you know how I can disable the Alt-Shift-LMB being caught by the window manager? It seems that my Ubuntu has assigned this to "Move Window" by default.

Link to comment
Share on other sites

I already looked under Compiz>General>allScreens>Options, but there was nothing. However, I will probably assign something else in my input.xml, before I spend half a day searching for that key. :)

Link to comment
Share on other sites

I don't think this should work anyway but trying to parent a brush directly with a model door entity gives the error: "The instruction at nnn referenced memory at nnn. The memory could not be read. Click on OK to terminate the program." Shall I add to bugtracker?

Link to comment
Share on other sites

What is the purpose of the spritemodel module? I had a brief look at the comments and it seems to be a bit outdated, referring to Q3 and Half-Life. It's the only module still referencing the libs/mathlib folder, btw, that's why I ask.

Link to comment
Share on other sites

Back in Windows, I got this nice scons error (after being able of compile a few times, it now instantly exits with this):

scons: Reading SConscript files ...
TypeError: Tried to lookup Dir 'build\release' as a File.:
 File "G:\Dark Mod\darkradiant\SConstruct", line 331:
SConscript(g_build + '/SConscript')

WTF? I didn't change anything there, it just stopped working from one compilation to the other. Googling is not terribly helpful here, searching for the error hardly gives results. Any ideas?

 

I have already tried upgrading to scons 0.97 (brand new), but this gives me the same result.

Link to comment
Share on other sites

Not sure, can you print out the value of g_build before you get to that line? It looks like it should be "build/release", which raises the question why it is looking in there for the SConscript file which is in fact in the root of the tree.

 

EDIT: Seems there is a note in the manually about that last part:

 

			  Note that specifying a BuildDir works most naturally with a sub‐
		  sidiary SConscript file in the source directory.   However,  you
		  would then call the subsidiary SConscript file not in the source
		  directory, but in the build_dir , as if scons had made a virtual
		  copy  of  the  source tree regardless of the value of duplicate.
		  This is how you tell scons which variant of  a  source  tree  to
		  build.  For example:

		  BuildDir(’build-variant1’, ’src’)
		  SConscript(’build-variant1/SConscript’)
		  BuildDir(’build-variant2’, ’src’)
		  SConscript(’build-variant2/SConscript’)

Link to comment
Share on other sites

I wondered that myself. I already tried to specify the SConscript directly:

SConscript('./SConscript')
SConscript('G:/Dark Mod/darkradiant/SConscript')
SConscript('C:/temp/darkradiant/SConscript')

all to no avail. The funny thing is, if I specify an invalid sconscript location, it says "ignoring non-existant sconscript" or something like that. If I point its nose to the very file, it raises this error. I'm currently downloading a new Python version, maybe this helps. So many problems these last few days...

Link to comment
Share on other sites

New Python didn't help, but doesn't hurt either.

 

Angua is getting that same error now, so perhaps it's the SConscript itself. I'll go back the SVN history (yet again).

 

edit: Yep, revision 1829 is working, there is something weird in the SConscript.

Link to comment
Share on other sites

The radiant_src expression has been reorganised in revision 1830. I've virtually no experience in python, hence I have no idea what is going wrong here. OrbWeaver, can you give me a hand here?

 

edit: It seems to affect the Windows scons version somehow. If I copy over the version from 1829, everything is fine again. Strange.

Link to comment
Share on other sites

I think I may have introduced a bug actually, the part that adds the icon is written as:

 

if radiant_env['PLATFORM'] == 'win32':
radiant_src += ' darkradiant.o'

 

but radiant_src is a list, so it should be

 

if radiant_env['PLATFORM'] == 'win32':
radiant_src += ['radiant/darkradiant.o']

Link to comment
Share on other sites

Yes, this was the error, thanks a lot!

 

I don't get quite the hang of the various python types and the valid operations, it all seems to be a bit fuzzy. The lack of proper block brackets { } is giving me the creeps, but I guess Python's success is justified after all.

Link to comment
Share on other sites

I don't get quite the hang of the various python types and the valid operations, it all seems to be a bit fuzzy. The lack of proper block brackets { } is giving me the creeps, but I guess Python's success is justified after all.

 

Python certainly has some really cool dynamic features, but I tend to agree the formatting is not good. It's all very well saying that using indentation for blocking "forces programmers to indent correctly", but just try copying and pasting some code between Python files and scratch your head wondering why it refuses to run (generally caused by different use of spaces and tabs which looks identical but isn't).

Link to comment
Share on other sites

Another thing: I have turned IRadiant into an abstract base class - so far so good. I added the method getLocalPixbuf() to the interface, which is also fine, but there are some other gtkutil routines (like gtkutil::IconTextMenuToggle()) relying on the gtkutil::getLocalPixbuf() method.

 

As calls to GlobalRadiant() are forbidden here, how can I tackle this problem without having a static (global) bitmapsPath variable within the library?

Link to comment
Share on other sites

Python certainly has some really cool dynamic features, but I tend to agree the formatting is not good. It's all very well saying that using indentation for blocking "forces programmers to indent correctly", but just try copying and pasting some code between Python files and scratch your head wondering why it refuses to run (generally caused by different use of spaces and tabs which looks identical but isn't).

 

I have mentioned this several times on some pyhton forums, but you are always shot down.

"You are a newbie and have to get used to it."

"You must be doing something wrong it always works for me."

"But it's so great because it forces programmers to write nice looking code."

 

etc.

 

I also don't really like this indentation as a syntax but that's how it is. :(

Gerhard

Link to comment
Share on other sites

Psh. Python's syntax is awesome. Braces are so 1980s. :P

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...