Can we read/write any text file? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Can we read/write any text file? (/thread-15447.html) Pages:
1
2
|
Can we read/write any text file? - vvanus - 05-16-2012 Hi, I'm working on some horror game research and currently finding a good environment to work with. I'm familiar with programming but completely new to this engine so I have some questions to ask. - Can I script the modded version of this game so that it can write some kind of in-game event log file? like when is this event occurred? when is this sound played? what is the status of a player? - Is it possible to make some parameters in game changeable via config file?(without changing it in editor or in game) like volume of sound or brightness of the game. - Are the sound FX and music used in Amnesia accessible? Can I get those sound, make some adjustment and then put it in a game again? Thank you >_< RE: Can we read/write any text file? - Your Computer - 05-16-2012 Study: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions RE: Can we read/write any text file? - vvanus - 05-16-2012 Currently looking at it! I found that many functions read a file directly so it should be easy to adjust something in the game. But I cannot find any function that can write an output text file, so, it is impossible right? Thank you for very fast reply anyway RE: Can we read/write any text file? - Homicide13 - 05-16-2012 There's always Print (string& asString); which prints a string to the log file (apparently). RE: Can we read/write any text file? - vvanus - 05-16-2012 (05-16-2012, 04:46 AM)Homicide13 Wrote: There's alwaysThis should be the one I'm looking for Can't try it out because I'm not bought this game yet but going to do so. Anyway, Thank you very much! RE: Can we read/write any text file? - Cranky Old Man - 05-16-2012 You could also look into the ProgLog() function. Maybe you can solve what it does. RE: Can we read/write any text file? - FragdaddyXXL - 05-16-2012 (05-16-2012, 03:14 AM)vvanus Wrote: - Are the sound FX and music used in Amnesia accessible? Can I get those sound, make some adjustment and then put it in a game again?And, yes. You can easily play around with all the sound files. Though, if you make any adjustments, you may want to rename it instead of over-wrighting it. RE: Can we read/write any text file? - vvanus - 05-17-2012 (05-16-2012, 05:51 AM)Cranky Old Man Wrote: You could also look into the ProgLog() function. Maybe you can solve what it does.Sorry but I can't figure it out what does this function actually do? RE: Can we read/write any text file? - Homicide13 - 05-17-2012 (05-17-2012, 05:59 AM)vvanus Wrote:Haha that's the point... None of us know....(05-16-2012, 05:51 AM)Cranky Old Man Wrote: You could also look into the ProgLog() function. Maybe you can solve what it does.Sorry but I can't figure it out what does this function actually do? RE: Can we read/write any text file? - vvanus - 05-17-2012 (05-17-2012, 06:49 AM)Homicide13 Wrote:I just found that if I turn UseProgLog in user_settings.cfg to true, I can use ProgLog() function to print out the text to ProgLog file. Is this new?(05-17-2012, 05:59 AM)vvanus Wrote:Haha that's the point... None of us know....(05-16-2012, 05:51 AM)Cranky Old Man Wrote: You could also look into the ProgLog() function. Maybe you can solve what it does.Sorry but I can't figure it out what does this function actually do? I found that this is useful because it logged the total gameplay time, health, sanity, oil, tinderbox at each entry that ProgLog() get called. and there are also some log that I didn't print on the log like enemy in range or player died --- Amnesia Progress Logger ---- Player: dev_user Date: 18/5 - 2012 --------------------------------- # High # 00:00:29 | 01_old_archives | H:100 | S:88 | O:100 | T:0 | C:0 > Collide trigger grunt # Low # 00:00:29 | 01_old_archives | H:100 | S:88 | O:100 | T:0 | C:0 > Enemy 'servant_grunt_1' is in range # Low # 00:00:29 | 01_old_archives | H:100 | S:88 | O:100 | T:0 | C:0 > Enemy 'servant_grunt_1' is in range # Low # 00:01:21 | 01_old_archives | H:100 | S:73 | O:100 | T:0 | C:0 > Forced Instant Exit in Journal (player finished reading). # High # 00:04:14 | 01_old_archives | H:-31 | S:13 | O:100 | T:0 | C:0 > Player died! # Low # 00:04:14 | 01_old_archives | H:-31 | S:13 | O:100 | T:0 | C:0 > Enter main menu. # Low # 00:04:15 | 01_old_archives | H:-31 | S:13 | O:100 | T:0 | C:0 > Return to game from menu # Low # 00:04:19 | 01_old_archives | H:-31 | S:13 | O:100 | T:0 | C:0 > Enter main menu. |