Jump to content
The Dark Mod Forums

Newbie DarkRadiant Questions


demagogue
 Share

Recommended Posts

 

This is a stock light texture which uses brightround, like many others, as its falloffimage:

 

lights/tdm_lanternlight

 

{

lightFalloffImage makeintensity( textures/lights/brightround )

{

forceHighQuality

map textures/lights/tdm_lanternlight

colored

zeroClamp

red ((.02 * sintable [(time * ( 1 + Parm3 ) ) ]) +.98) * Parm0

green ((.02 * sintable [(time * ( 1 + Parm3 ) ) ]) +.98) * Parm1

blue ((.02 * sintable [(time * ( 1 + Parm3 ) ) ]) +.98) * Parm2

}

}

 

 

 

I've literally been through all suitable stock light textures and they all cut off to black like this when they're set to project, it's strange.

 

 

 

Try

 

 

 
lights/tdm_lanternlight_dragofer
 
{
  lightFalloffImage makeintensity( textures/lights/xfalloff )
 
  {
    forceHighQuality
    map textures/lights/tdm_lanternlight
    colored
    zeroClamp
    red ((.02 * sintable [(time * ( 1 + Parm3 ) ) ]) +.98) * Parm0
    green ((.02 * sintable [(time * ( 1 + Parm3 ) ) ]) +.98) * Parm1
    blue ((.02 * sintable [(time * ( 1 + Parm3 ) ) ]) +.98) * Parm2
   }
 
}
 
  • Like 1

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

Try:

 

Thanks, with a little bit of extra work it's now looking realistic when it moves towards and away from walls and corners, except for a graphical glitch - the lamp now shines in both directions. Here were my steps:

 

KCgaQZP.png

 

 

- textures/lights/xfalloff needs to be just lights/xfalloff

- The falloff image wasn't quite right because it's bright only in the middle, so the lamp became very weak when it came close to surfaces.

- So I duplicated the file and cropped off one half in Gimp so that it's bright on one end and becomes dark on the other end. The lamp intensity now changes realistically, but there's that glitchy backward ray now.

- This was exported as .tga without RLE compression, origin at the bottom left. Also tried with RLE compression and/or origin at top left, same outcome.

 

 

Some troubleshooting I made:

- I've tried to exclude the possibility of a technical error by re-exporting the original. Another thing I did was to duplicate the original and inside of that file recreate the original bidirectional gradient. Both worked normally.

 

- The cropped version was only half as long as the original, so I made a new version: I duplicated the original, deleted everything and filled in a new gradient. That didn't change anything - the backward ray was still there.

  • Like 1
Link to comment
Share on other sites

I'm asking here, with hopefully more success than on the main page: What is your favourite flickering light texture? riporter.gif

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Link to comment
Share on other sites

More questioning!

 

How large can a map_of.tga image (the in-game map thingy) be? Can I get away with something like 1280x960? More than that? Or is that going to cause problems for people?

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Link to comment
Share on other sites

2048x2048 is the largest that (AMD) 2006 vintage hardware will support (nvidia had 4096x4096 support then).

I guarantee that anything 5yrs old or newer can handle far more than that, but it's a good baseline.

 

Edit: DX10 hardware is required to have 8192x8192 support. DX11 and higher require 16384x16384.

 

https://msdn.microsoft.com/en-us/library/windows/desktop/ff476876%28v=vs.85%29.aspx

 

So 8192x8192 or higher as of 2007 hardware.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

It was more like 800x1024, and it had a transparency layer behind it to round it our to 1024x1024. Won't my image get stretched, or become larger than the screen are for people playing on lower resolutions?

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Link to comment
Share on other sites

I'm pretty sure it auto-scales but you need to include a good baseline window def and ideally you want to make your image in HD aspect then squeeze it into a standard

aspect and let the engine stretch it back to HD. I can play with the map in BCD tonight to check the behaviors and verify. (I fixed it a few times so that's one I'm getting familiar

with, though I would defer to Obsttorte or Grayman for true expertise in GUI behavior.)

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

I'm getting a leaked warning but can't figure out why.

 

The map only consists of a single room yet. Its walls are all covered with patches that are all bulged somewhat to make it look organic. The only entities are the player start and an ambient light, both well placed inside the room and not between patches or something.

Also, I get a could not open pointfile error in Dark Radiant.

 

Does someone have a tip what I could check to track down the origin of the problem?

 

edit: even after removing all the patches the problem remains.

 

edit2: I had to delete the room for whatever reason and create a new one. Now everything works. Would still be interesting to know what caused these errors...

Edited by Nico A.
Link to comment
Share on other sites

I once got a leak that I couldn't figure out for the longest time; turns out it was because a func_static's origin was out in the void, which apparently DR doesn't like. Dunno if that was your problem here?

Link to comment
Share on other sites

You can use the pointfile to track down leaks.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

You can use the pointfile to track down leaks.

Dark Radiant says there is no pointfile, even after the dmap.

Thanks for the PM offer :)

I deleted the room and now I can't recreate the problem anymore. Moving on...

Edited by Nico A.
Link to comment
Share on other sites

Moar questions! (Although not strictly TDM-related)

 

What kind of simple, free software would you recommend to rip the audio track from a video file? Especially if there are multiple audio tracks.

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Link to comment
Share on other sites

Thanks! Got the job done. :)

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Link to comment
Share on other sites

Newbie-ing intensifies!

 

Is there a relatively simple way to make a patrolling AI follow another patrolling AI?

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Link to comment
Share on other sites

I'm trying to get a func_portal with a lod_bias to work, but when you start the map func_portal doesn't close the portal. You have to change the LOD setting in game for it to activate. Alternatively, you have to type tdm_lod_bias_changed in the console. Is this a known bug?

My FMs: The King of Diamonds (2016) | Visit my Mapbook thread sometimes! | Read my tutorial on Image-Based Lighting Workflows for TDM!

 

 

Link to comment
Share on other sites

So say I wanted non-violent but still functional gameplay. How would I set it up so that when a hostile AI touches the player (or within a proximity if AI don't touch players) the player teleports back to the entrance, as if caught & thrown out? (Digi's Tales of the Pentetant Thief did this in T2.)

 

I suppose AI weapons should be taken out too, but if that complicates things too much, perhaps making them not give damage, and a hit does the teleport.

 

I'm not commited to this yet, but I want to see how it plays. The player probably won't be armed or doing anything illegal, aside from sneaking around some.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

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.

 Share


×
×
  • Create New...