The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help AddDiary issue
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
AddDiary issue

I'm planning to add a diary via script at a certain point in my mod, so I used this function:

void AddDiary(string& asNameAndTextEntry, string& asImage);
Adds a diary to the player's journal.
asNameAndTextEntry - entries in the .lang file. Must end with _NameX and _TextY whereas X and Y
are numbers of the parts (_Name1: first diary, _Text1: first page) and be in category “Journal”!
asImage - the background image to be used

The problem is that not only the text is not being shown, but also the background image doesn't load up.

Here's the script I have for the diary:

PHP Code: (Select All)
AddDiary("Diary_CH00L01_1""bg_letter.tga"); 

And here are the entries in .lang file (journal category):

PHP Code: (Select All)
<Entry Name="Diary_CH00L01_1_Name1">Test</Entry>  
    <
Entry Name="Diary_CH00L01_1_Text1">Just testing</Entry

Any ideas?
07-27-2016, 09:57 PM
Find


Messages In This Thread
AddDiary issue - by Slanderous - 07-27-2016, 09:57 PM
RE: AddDiary issue - by Mudbill - 07-27-2016, 11:18 PM
RE: AddDiary issue - by Slanderous - 07-28-2016, 12:45 AM
RE: AddDiary issue - by Mudbill - 07-28-2016, 01:01 AM
RE: AddDiary issue - by Slanderous - 07-28-2016, 02:24 AM



Users browsing this thread: 1 Guest(s)