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

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...