Jump to content
The Dark Mod Forums

Search the Community

Searched results for '/tags/forums/use' or tags 'forums/useq=/tags/forums/use&'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • News & Announcements
    • The Dark Mod
    • Fan Missions
    • Off-Topic
  • Feedback and Support
    • TDM Tech Support
    • DarkRadiant Feedback and Development
    • I want to Help
  • Editing and Design
    • TDM Editors Guild
    • Art Assets
    • Music & SFX

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. For the people eager to play with the latest state of development, two things are provided: regular dev builds source code SVN repository Development builds are created once per a few weeks from the current trunk. They can be obtained via tdm_installer. Just run the installer, check "Get Custom Version" on the first page, then select proper version in "dev" folder on the second page. Name of any dev version looks like devXXXXX-YYYY, where XXXXX and YYYY are SVN revision numbers from which the build was created. The topmost version in the list is usually the most recent one. Note: unless otherwise specified, savegames are incompatible between any two versions of TDM! Programmers can obtain source code from SVN repository. Trunk can be checked out from here: https://svn.thedarkmod.com/publicsvn/darkmod_src/trunk/ SVN root is: https://svn.thedarkmod.com/publicsvn/darkmod_src Build instructions are provided inside repository. Note that while you can build executable from the SVN repository, TDM installation of compatible version is required to run it. Official TDM releases are compatible with source code archives provided on the website, and also with corresponding release tags in SVN. A dev build is compatible with SVN trunk of revision YYYY, where YYYY is the second number in its version (as described above). If you only want to experiment with the latest trunk, using the latest dev build gives you the maximum chance of success. P.S. Needless to say, all of this comes with no support. Although we would be glad if you catch and report bugs before the next beta phase starts
  2. How you can help depends a lot on what skills you have. I can Record Video Recording "Let's Play" videos or simple walkthroughs of existing missions and posting them to Youtube is great exposure for the mod (see example .) Be sure to let us know so we can link to them. If you have some editing ability, Video tutorials, where you explain how the mod works, or how to use specific tools, would also be great. Video trailers, showcasing interesting places and features, are also great for publicity. An example is . I can Write Writing reviews for missions are always nice, especially if they include good screenshots. Not only does it give us something to post on other forums, but it makes mappers feel good when their mission gets attention (especially if it's positive). We have a collective thread to post reviews in: http://forums.thedar...s-walkthroughs/ Writing reviews of the mod as a whole, targetted an an audience that doesn't know much about TDM, is also very useful. You could also try offering your services to mappers to create interesting readables, or to proofread for their mission. I can Act and Record Audio We are always on the lookout for good quality audio recordings for vocal sets. If interested, you can pick a few different lines from this script: http://wiki.thedarkm...t:_Average_Jack and send the recordings to Springheel, who then writes a script based on the type of voice you have. I can Translate We could always use translations of our menu/hud into more languages. Also, only a few FMs are aavailable in more than one language, so there is a lot of work there, see the I18N Translator's Guide in the Wiki. I can Model Great! Take a look at the model request thread:http://forums.thedar...-requests-here/ and pick something that interests you. Or just post a, "Hey, anybody want a model?" thread in this forum and I'm sure mappers will get back to you. I can Animate Fantastic. We can always use more good animations. Our current character rigs use a Maya skeleton. PM Springheel for more info. I know C++ Have a look at our coding section in the wiki, pick an issue or feature from the bugtracker of the mod or the leveleditor, download the recent sourcecode release (or better ask for an SVN checkout) and get cracking. Make sure nobody is already working on that specific issue and feel free to ask questions. I can Edit Images We can always use completely new textures and/or improved versions of older textures. How to get started and how to import them into the mod. I can Take Photos Good quality photos of useful textures (medieval-ish building facades, dirt, rocks, wood, etc) are always welcome. The fewer directional shadows and higher resolution, the better. I don't have any skills Even if you can't do any of the above, you can still help out. Talk about TDM in other forums; share your (preferably positive) experiences with other gamers you know. Last, but not least, compliment people when you like their work. Saying "thanks", to a developer or, "I really enjoyed your mission" to a mapper will make their day. -------------------- I'll update this further as more things occur to me.
  3. https://www.ttlg.com/forums/showthread.php?t=153454&p=2543356&viewfull=1#post2543356 Great reaction from heywood.
  4. plenty of lian li models have both firewire and flash drives (i have one heh). the early models came in silver or black anodized alu (also got one of both). biggest problem with lian li's older cabinets were the fans which while silent unless pushed did not move much air at all. replace them with a set of noctuas and the airflow is actually reasonable. some also make cutouts in the frame for more fans and the 5.25 drive trays can be converted to fans as well (there are some fan trays that are ready made for these but they usually come in black). i use my small 3 fan silver lian li case with a haswell 4790k and an AMD RX5700XT and it works well despite the gfx card getting rather hot even in a well ventilated case. the reason i like them so much is that they are easy to modify and there are a ton of accessories for them though you will have to look those up on the used market as they no longer get produced. i have a 5.25 " fan controller for the silver one but with the haswell board i did not really have any use for it since it is new enough to have several fan controllers. also got a 3.14" flash drive controller for the floppy cutout. i also liked the old coolermaster HAF X cabinets, which while old still has some of the best airflow you can get (downside is that its heavy as hell because its a full tower steel cabinet).
  5. 5.25“ fan trays (pre-made) and 5.25” fan controllers are actually hard to find here. I’ll have to use power tools in the future to drill holes in the PC case,one or two on the top and one on the side panel But I haven’t finalized my choice of case yet. on Saturday morning I’m going to the flea market to look for an old PC case.I'll probably spend 1–2 hours there *gonna buy dremel
  6. the 9800x3d is still faster but not as much as you might believe . it generally does better in the 1% lows but the 5800x3d is not that far behind. im seriously considering it though the 12 cores on the 5900x are nice as well. still wainting on my argb splitters but the supply chain is kinda fubared atm so earliest i will see them is in 3 to 4 days. the liquid freezer III is humming along in the meantime as i cure the thermal paste. its pretty silent unless i crank the fans to 11 so i barely notice it running in the background. the lighting is more distracting tbh . found a 4 stick set of 32 gb cl16 3600 mhz ram at a nice price though i cant afford it atm so it will have to wait. the current ram are probably better suited for my broadwell as the default is 2133 mhz cl14 and the old board not liking 3200 mhz sticks unless i use the xmp profile in which case it would be overclocked anyway. found an adapter from one of the internal usb 3.1 connections to usb C so i can get that cable mounted as well in the lancool III where my developer machine is currently residing. at some point and if prices dont go nuts on used hardware i might invest in a 299x board and cpu for the developer machine. should match the capability of my 3070 a little better as right now i dont get any use out of rebar since my old board does not support it and i had no luck with the bios hacks that should enable it.
  7. In pursuit of a long-sought secret, the key to life everlasting lies deep within the recesses of an ancient athenaeum. Dragofer, Bikerdude, and I proudly present our FM for the Christmas Connections Contest titled "Written in Stone." Notes - TDM 2.10 Beta 5 or later is REQUIRED to play this mission. However, it is recommended to play using 2.10 Beta 6. You can get the latest version here. - This FM is a sequel to The Elixir. While it is not vital to play that before playing Written in Stone, there are some story connections. - This FM may be more hardware intensive than normal. LOD settings can be set below "Normal" to improve performance on low-end machines by disabling certain features. - Various areas will look better with shadow maps enabled at the possible expense of performance. - This FM implements the func_peek mechanic, allowing players to peek through any door that has a keyhole on it by leaning forward. PLEASE NOTE: This function has been known to cause crashes for a small number of players in the past, likely due to using the 32-bit version of TDM. At no point in this mission is it required to use the func_peek mechanic; it is purely optional, so feel free not to use it. As an entry in the 2.10 Christmas Connections Contest, the new features and assets used by this FM are: Download Version 1.1 This FM is available for download here: Google Drive Simply place the written.pk4 into your darkmod/fms folder and you're ready to go! Promotional Screenshots (via ThiefGuild) Credits A big thanks goes out to Wellingtoncrab for making a beautiful city map, Narrator for their wonderful voice work, nbohr1more for creating the original story premise as well as a few readables, Goldwell for animating the introduction to our briefing video and Duzenko for making certain glasses work as well as they do! A huge thank you also goes out to our beta testers: Goldwell, Wellingtoncrab, Kingsal, noodles, Krilmar, Garrett(Monolyth-42) ate0ate, and Mike_A. Thank you all very much for your keen eye to detail and great insights! Asset Credits Kingsal's Killer Assets Wellingtoncrab's Wonderful Furniture and Book Skins ***PLAYERS BEWARE*** SPOILERS lurk in the depths below. We strongly recommend playing this FM first so you don't spoil the fun for yourself!
  8. by the great cthulhu christians have invaded the blood of the dawnwalker forums moaning about them being put in a bad light by a game... looking back chritianity was one of the most bloody in human history and they bitch about the game allowing for people to fight back i mean wtf... yes lets have the dark ages back as if we truely need more to bog us down. i think its time we neutered they're access to the internet .
  9. thank you for the recommendation The removable motherboard tray feature is pretty cool, though. i have trust issue with glass frame especially tempered glass because if you're not careful, the glass could shatter (especially if it hits a tiled floor or a certain type of case). i 100% prefer mesh for side panel now For older PC cases, airflow management is definitely the main issue though I couldn’t care less about the ribbon cables. If I were to use an old ATX case like that, I’d have to remove the 5.25-inch bay or take out the CD-ROM tray and the 3.5-inch floppy drive, then route the airflow through the rear and side vents (if any) Aside from brands that actually specialize in making PC cases, I wasinterested in the HP Media Center PC and HP Pavilion A1340n or A1742n pc case. They really capture that 2000s vibe, not to mention they have a port for reading CompactFlash (CF) cards and a FireWire port (even if it’s just for show and doesn’t actually work) last but not least , it’s silver!
  10. many good ideas that were scrapped at the time people got them due to the technology to take advantage of it was not there yet. sounds a bit fun to have a resonator in a cmos but i bet people will complain if it starts to sound like coil whine . had been up for two days yesterday so i did not quite finish up my project, but despite not having the argb splitters yet i did some housekeeping by adjusting a few things in the build. the AIO was as said mounted in the front cutout but i arranged it so that the tubes are at the bottom. this is because otherwise the air inside the AIO would move towards the pump and that would destroy it pretty quickly. only downside is that the hoses kinda bump into my gfx card but mechanically it is sound. i also had to reverse the top fans due to how the fan outlets are arranged on my board (at the bottom) otherwise i had to use an extra cable because the one on the fans are to short when arranged like i did previously. i also did some housekeeping on the cables in the back especially the arbg cables so now they are ready for when i get the splitters. my board actually has a pretty funny feature where if you have a mechanical harddrive you can cache the command queue which makes it just as fast as an ssd unless the cache gets emptied to quickly. this depends on how much ram the board is currently holding (supports up to 128 gb) i use about 15% of my 32 gb as cache and it runs cyberpunk 2077 from that drive without a hitch . all the lighting stuff is really not me i have to admit, but the cabinet came loaded with it and the board supports it so i thought what the heck. ill take some pictures when it is done
  11. Zerush

    Free games

    It's curious, I'm in a social network (Lemmy), there are a lot of threats with security and privacy as main theme and everybody using all kind of privacy tools, VPN, I2P, TOR... claiming agains big corporations because surveillance advertisings, etc. and seem to forgot all in the gaming world, despite that the behavior of Steam is worse as a lot of the soft companies which are criticized. I'm not wearing a tin foil cap, but for me online privacy is a basic right, because in many cases it is synonymous with security. I imagine it would happen that other services or software that we use requires an account in a third-party company and requires a desktop client to be able to use this software, the protests would be epic, but this is exactly what Steam and others do and no one bothers. I just don't understand it and I don't find it desirable either, even if I'm not a fan of privacy beyond reason, simply I don't like that someone breath in my neck when I want relax and playing a game or whatever I do in my PC.
  12. That's quite an understatement, considering he practically left for a handful of people making use of AI in their missions. Again, I think it's more of a drama queen moment. Because it makes things you need a semi-professional artist for much easier and more accessible. I don't think it matters if A.I. or not, it rather matters how you use A.I. Of course, it's totally stupid to let it do the whole mapping for you, and I don't think anyone half-serious would use it that way. Again, I think an excellent example were the paintings in Seeking Lady Leicester. Yes, they obviouly got replaced now (I haven't played the mission since then), but, I think that's a great example for the fair use of A.I. Although WellingtonCrab of course will probably smite me again for saying that, because he never used A.I. in his life. Sorry, bit of teasing has to be.
  13. The still ongoing Windows 10 topic sparked my curiosity why people do not just switch to Linux. But users of other OSes are also allowed to vote.
  14. Hi team, I've come back to the FreeBSD native port that I was working on and have some patches that I would like to upstream. What is the best way to submit patches for consideration? Is there a public tracker/email list, or is it best to post patches somewhere here on the forums? Thanks!
  15. not exactly retro no, many still use the skylake cpu's only problem being win 11 compatibility (unless you bypass the checks). microsoft kinda blew the ball on all the compatibility crap as even my oldest sandy still ran win11 with no problem. instead they butchered support for many older soundcards like the X-Fi titanium fatality which is just crap as i newer had any stability problems with it and it is the last card with a real hardware DAC. to get the same sound quality today id have to invest in an external DAC. all cards today use software processing instead. later cpu series also had some hitches because they at some point decided to replace the soldered IHS with a tim based one causing bad thermals. but it seems they went away from that idea again. hmm could get an I7 6700k they go for around 50 euros here. not a bad chip at all either though it only has 4 cores, 8 threads with HT. bit like a faster model of my old 4790k despite both being 4ghz and the devils canyon boosting higher 4.4 vs 4.2 ghz. a sandy like the old x58 nehalem chips might be closer to real retro but they do run well.
  16. I’m shifting my focus away from all the pricing details I just want to observe whether OpenAI and Anthropic go public(IPO) or not, and whether they renew their contracts with memory chip companies beyond 2028 (this is a critical point). I rarely use AI myself, and I have mixed feelings about it in a professional context, but something interesting happened to me recently: An AI consultant demonstrated how to distill an LLM to me. The personal PC he brought was powerful enough to run the local AI model (using an RTX 3090), but for the actual on-premise deployment, he didn't use that machine. I also heard a colleague helping to prepare for the installation of NVIDIA H100s at a local F&B company—a process involving numerous requirements and installation must be done by nvidia partners and NVIDIA technicians. I’m not sure if security clearance was required or not. Yet still I find myself bored and irritated by what Sam Altman is doing.
  17. Zerush

    Free games

    Yes, but anyway I don't see the reason why I need an account in a third party and his desktop client,who logs my activity, to play an game. Even when I can use the game without launching the desktop client in GOG, it's not so by default, I have to search the executable of the game first for this. In Steam this isn't possible, without it's client the game don't work. This is why I like Itch.io, there isn't needed an account (except when you want to buy there a agame). There you enter search a game to your like (most are free), download it or play it right there in your browser without any clients or other crap (maybe a good site for TDM, instead of Steam).
  18. "When the leaves change and the air is still, there is a quiet." -Lady Blackbriar -=| DISPLACEMENT |=- BY AMADEUS & WELLINGTONCRAB = DOWNLOAD = <( | )> -REQUIRES TDM 2.14- -JOIN THE BETA NOW- "Seek not the prideful sin that is perfection The Builder's light shines through all flaws. It is His wisdom to recognize a thing is done Before it is ever truly finished." -St. Edgar's Sermon of Rust LAMPFIRE HILLS... They say the woods around here give the tourists bad dreams, but I don't mind. I like it here. I feel like a piece of me belongs here. ... That it fits. DISPLACEMENT is a medium-sized traditional manor mission with a highly variable playtime. *2.14 provides a number of improvements to gameplay, performance, and stability. It is strongly encouraged to play on the latest 2.14 beta release. Join in testing now!* *Mods such as the “Unofficial Patch” and “TDM Modpack” are not supported by this mission and should be used at your own risk* https://www.thiefguild.com/fanmissions/97429/displacement CREDITS: ADDITIONAL MUSIC: -AIRSHIP BALLET -GIGAGOOGA ADDITIONAL SCRIPTING: -DRAGOFER -OBSTORTTE -FROST SALAMANDER -KINGSAL ADDITIONAL ASSETS: -KINGSAL -TDASH -SKACKY -BIKERDUDE -GOLDWELL -EPIFIRE -STRUNK -SHANNEN ART -POLYHAVEN -TEXTURES.COM -SKETCHFAB CULTURAL HERITAGE CC0 COMMUNITY -LOISTE INTERACTIVE -COLINFIZGIG -CDMIR BETA TESTERS: -KINGSAL -GOLDWELL -MAT99 -FROST SALAMANDER -MIKE A -STGATILOV -STIFU -MARBLEMAN -DETEEFF -THEBIGH FURTHER ACKNOWLEDGMENTS: -STIFU FOR HIS EFFORT IN FIXING THE NOTORIOUS STUCK AI AND ARROW CRASH BUGS. -STGATILOV WHO MADE A NUMBER OF 2.14 OPTIMIZATIONS AND BUG FIXES. -KINGSAL FOR PROVIDING SOME OF THE MAIN MENU GUI ASSETS -PURAH FOR ORIGINATING THE SETTING OF LAMPFIRE HILLS, REIMAGINED HERE, IN HIS THIEF FMS. -GUY-ON THE COUCH AND JAM61 FOR THEIR SILENT HILL COMMUNITY MAPS WHICH HEAVILY INSPIRED THE LAMPFIRE HILLS REGION MAP. -SPECIAL THANKS TO LOISTE INTERACTIVE FOR ALLOWING US TO USE ASSETS FROM THEIR GAME "INFRA." SOME ADDIITONAL DETAILED LICENSING INFORMATION: SOME NOTES ON PERFORMANCE: NOTE TO MAPPERS: MOST OF THE NEW ASSETS IN THE MISSION ARE INCLUDED IN 2.14
  19. I'm still undecided on whether to sell these 2 main PC components and some old "battlestations" (32/64GB ram upgrade and 1TB ssd upgrade , no fixed schedule for 5700x3d). if I do go through with it, I'll " BRB " since I won't be at my main workstation from December through March or April(till it sold out) plus I have specific projects at other locations so this PC will get a long hibernation. I just asked an acquaintance of mine about memory prices in Hong Kong versus mainland China(around futian or quangdong for china), the Hong Kong pc part prices can be two to three times higher. Unfortunately, he doesn't know how to use Taobao or mainland JD app(supported payment gateway,customs, shipping to other country,etc). Hand carry would be easier choice crazy times , I've been looking for RAM with chips made by CXMT and Nanya (Nanya is Taiwanese) because i have insatiable curiosity regarding those chips By the way, the RAM I'm currently using actually comes from that region, color me shocked, the parent group is Essencore. Back when I was shopping for parts, I was frustrated that most memory brand like corsair, patriot,gskill was sold out (this was dec 2024) so the shop assistant suggested this brand and it turned out to be quite durable.
  20. I have committed my changes to SVN, now SVN works on the UTF-8 system. It reads all language strings from all.utf8lang file, and only reads old-style {language}.lang files for missions if the equivalent new-style files are not available. The core .lang / .map files are present yet, but will hopefully be deleted. In the end, I had to manually add some characters to utf8map to suppress warnings. They were not handled by the old engine: I simply remapped them all to the question mark. It seems that the majority of them come from language names, and I don't care if they look broken or have question marks. I have already stated my position about language names. At the current moment, .utf8lang uses the same format as .lang, but this is temporary. As I said before, this must be changed in order to not lock us into compatibility trap. The format should be a sequence of "commands", each command starting with a keyword saying which command it is. And global state should be kept to minimum (e.g. current language seems acceptable). In addition to the current "#str_{name}" placeholders, I'd like to add two more types of replacements for missions. 1) Plain-text replacements, i.e. replace "Not enough drive space to save the game." with "Não há espaço para salvar o jogo.", as I suggested before. This approach provides zero inconvenience for the mapper, but it rather unreliable. It becomes especially bad for short strings. This kind of replacements is not cheap to perform, but I think I know how to do it efficiently. The first version will do it with bruteforce algorithm, we don't have any plain-text replacements yet anyway. 2) Full-text + ID replacements, i.e. replace "Not enough drive space to save the game.#id_nospacesave#" with "Não há espaço para salvar o jogo.#id_nospacesave#". The #id_...# placeholders are stripped from the text by the engine even if translation does not exist. If translation exists, then the engine verifies the context around the placeholder and does not apply it in case of mismatch. This approach gives mild inconvenience to the mapper, since he can clearly see the original text but has to tolerance this annoying tag at the end. The mapper can even edit the text without touching the placeholder: the obsolete translations will stop working automatically. I have a feeling that plain-text replacements won't be enough for the missions, and hope that such extra "tags" can be used here and there to make it more reliable.
  21. ============== -= IRIS =- ============== WELLINGTONCRAB TDM v 2.11 REQ Ver. 1.3 *For Maureen* -=- "Carry the light of the Builder, Brother. Unto its end." -Valediction of the Devoted "What year is this? Am I dreaming?" -Plea of the Thief Dear Iris, I am old and broken. When we were young it felt like the words came easily. Now I find the ink has long dried on the pen and I'm as wanting for words as coin in my purse. I can tell we are nearing the end of the tale; time enough for one more job before the curtain call... ============== -Installation- Requires minimum version of TDM 2.11 **Dev build dev17056-10800 (2.13) fixes several visual effects which have been broken in the mission since the release of 2.11. For that reason playing with that version or later is currently recommended** -Iris does not support mods or the Unofficial Patch- Download and place the following .pk4 into you FMs directory: Iris Download ============== Beta Russian Language Translations by @kalinovka Mirror #1: yandex.ru Mirror #2: Google Drive ============== *Thank you for playing. Iris is a large mission which can either take as quickly or as long as you are compelled to play. I hope someone out there enjoys it and this initial release is not completely busted - I tried the best I could!* *Iris both is and isn't what it seems. If commenting please use spoiler tags where appropriate. If you are not certain if it would be appropriate a good assumption would be to use a spoiler tag* *Support TDM by rating missions on Thief Guild: https://www.thiefguild.com/* ============== WITH LASTING GRATITUDE: OBSTORTTE - Whose gameplay scripts from his thread laid the foundation which made the mission seem like something I could even pull off at all. Also fantastic tutorial videos! DRAGOFER - Who built upon that foundation and made it shine even brighter! And whom also provided immeasurable quantities of help and encouragement the past couple years on the TDM discord. ORBWEAVER & GIGAGOOGA - For generously offering their ambient music up for use. EPIFIRE - Who lent me his fine trash and trash receptacle models. AMADEUS - Who was the first person who wasn't me to play the damn thing and provided his excellent editorial services to improving the readers experience playing TESTERS AND TROUBLESHOOTERS: AMADEUS * DATISWOUS * SPOOKS * ALUMINUMHASTE * JAXA * JACKFARMER * WESP5 * ATE0ATE * MADTAFFER * STGATILOV * DRAGOFER * KINGSAL * KLATREMUS - What can I possibly say? Playing this thing over and over again could not have been easy. Deepest thanks and all apologies. -=THANKS TO ALL ON THE TDM DISCORD AND FORUM=- ==SEE README.TXT FOR ADDITIONAL ATTRIBUTIONS & INFORMATION== HONORABLE MENTION: GOLDWELL - If I hadn't by chance stumbled into Northdale back in 2018/2019 I would probably still be trying to get this thing to work in TDS, which means it probably would not exist - though more details on that in readme. ============== Boring Technical Information: *Iris is a performance intensive mission and I recommend a GTX 1060 or equivalent. I find the performance similar to other demanding TDM missions on my machine, but mileage may vary and my apologies if this prevents anyone from enjoying the mission.* *Iris heavily modifies the behavior of AI in the game, how they relate/respond to each other and the player. So they may act even stranger than they do typically in TDM. Feedback on this is useful - as it can potentially be improved and expanded upon in future patches.* -=- This is my first release and it has been a long time coming! If I forgot anything please let me know! God Speed. 2.10 Features Used:
  22. Okay, I've coded a solution that lets you update a readable with up to three substitution strings. I'll list the limitations up front, just so you don't get too excited: 1) It supports at most three substitution strings (although this is easy to change). Scripting doesn't support arrays, so I had to pick a fixed number. 2) As @kingsal mentioned, scripting has a problem with strings longer than 127 characters. So this doesn't work well with readables with long strings (see below). To use: Create your readable as you normally do. Presumably you'll edit it using the Readable Editor. In the text, use "%1" (no quotes) to indicate a string that you want to substitute (%2 for a second string, and %3 for a third). So for example, you might have a sheet that his a title of "Hey %1" and a body of "The new combo is %2. Regards, %3" From a script, you make a call like this: adjustReadable($testsheet, "Chris", "375", "Jeff"); Where "$testsheet" is the name of the readable entity. The next three strings are the substitutions for %1, %2, and %3. If you only have one or two substitution strings, just pass "" for the remaining args. In game, the sheet looks like this: Like I said, it's SMOP (simple matter of programming) to support more than 3 substitution strings. But the 127 character limitation is much more difficult. It's a problem/feature with the scripting code: strings are limited to 127 characters in length. The adjustReadable() call will truncate readable strings to 127 characters, so if you have a long page in a book with a substitution string, the page will be truncated. The code is smart enough to limit the damage - if a readable string doesn't have the substitution characters (i.e., "%1") then I won't process it at all, and the text isn't truncated. So with some planning you can get this to work - just make sure all of the pages that have substitutions are short (For example, page 1 is a wall of text, 100s of characters with no substitutions. Page 2 is brief, "And that's why I changed the combination to %1".). Dynamically creating readables with strings longer than 127 characters is possible, but ugly. That's another whole topic, I will discuss separately. Here's the code. Drop it into your <fm>.script file, and call it as in the example above. Suggestions for improvement are welcomed. string substitute(string str, string sub1, string sub2, string sub3) { if (sub1 != "") str = sys.strReplace(str, "%1", sub1); if (sub2 != "") str = sys.strReplace(str, "%2", sub2); if (sub3 != "") str = sys.strReplace(str, "%3", sub3); return str; } // Adjusts all of the contents of the specified readable. In any xdata content for this readable, this method will replace "%1", "%2", and "%3" // with sub1, sub2, sub3, respectively. void adjustReadable(entity readable, string sub1, string sub2, string sub3) { string xd = readable.getKey("xdata_contents"); readable.loadExternalData(xd, "xdx_"); string key = ""; while ((key = readable.getNextKey("xdx_", key)) != "") { string xdName = sys.strSkip(key, 4); string xdValue = readable.getKey(key); if (sys.strFind(xdName, "page", 1, 0, 4) == 0) { if (sys.strFind(xdValue, "%1", 0, 0, -1) >= 0 || sys.strFind(xdValue, "%2", 0, 0, -1) >= 0 || sys.strFind(xdValue, "%3", 0, 0, -1) >= 0) { string newXdValue = substitute(xdValue, sub1, sub2, sub3); readable.setKey(xdName, newXdValue); } } } }
  23. Hmmm, just thinking to use empty or missing msgctxt to achieve same goal. I'll experiment a bit. At moment, seeing if I can just keep long lines (instead of chucking), and use settings in poedit to accept them. I've added a command-line option switch for this behavior.
  24. hmm my test PSU must have developed some hickup. atleast that is what is happening when i use it to test my old boards . all the boards turn on off on off argh!. guess ill better throw it in the garbadge though a bit strange, it is a corsair cx550 and while not the greatest it is only 2 years old. so for it to have developed this kinda behaviour after working fine is blowing my mind. at first i thought the board was dead then the next one did the same and the next so i guess i can reliably say its f...d. also forgot i actually have 4 boards for tinkerers i also have an old x79 with a 3900k sandy 6 core. only thing wrong with the board is that the latch on the pcie 1 slot is rather loose (still locks fine). the board is an asus x79 deluxe and is the first sandy with nvme support (needs a riser card which i have for it). this is a HEDT board so can take cpu's with more cores like xeons. it should alledegdly support XP if you slipstream the AHCI drivers to the iso before burning it. i also have the wifi antenna for it.
×
×
  • Create New...