Frictional Games Forum (read-only)
Note question, Can't really get it to work... SOLVED! - 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: Note question, Can't really get it to work... SOLVED! (/thread-22210.html)



Note question, Can't really get it to work... SOLVED! - DnALANGE - 07-23-2013

Hi all,
Question about this :
void AddNote(string& asNameAndTextEntry, string& asImage);
-
I know what to put everywhere..
But,
What imigeFile does i have to put there? .jpg.pgn?
I try everything, but it Just doesnt show up!
-
So i want this :
Pick up an entitie -> opens up an Note with CUSTOM PICTURE,
Or let's first try a standard picture for knowing how to make it to work.
-
Regards, Lange


RE: Note question, Can't really get it to work... - Lizard - 07-23-2013

Try to set it as a .PNG file


RE: Note question, Can't really get it to work... - PutraenusAlivius - 07-23-2013

Save it as a .TGA.


RE: Note question, Can't really get it to work... - Your Computer - 07-23-2013

If you've used PNG or JPEG, then the issue isn't the image format, it's the file name of the image. The file name must have the suffix "_large" (e.g. "custom_note_bg_large.png") in order for it to work. Then you'd use:

PHP Code:
AddNote("NoteEntry""custom_note_bg"); 



RE: Note question, Can't really get it to work... - DnALANGE - 07-23-2013

Thanks,
i was very close!
I try and let you know if it worked,
Thanks all!


RE: Note question, Can't really get it to work... - DnALANGE - 12-10-2013

AddNote("NoteEntry", "custom_note_bg");
...................
How the .... can i add the picture ?
I can;'t get it to work if i add a script!
When i pickup it works great. only NOT with scripting.
Hmmmmmmmmmmm...


RE: Note question, Can't really get it to work... - Daemian - 12-10-2013

(07-23-2013, 10:52 AM)Your Computer Wrote: If you've used PNG or JPEG, then the issue isn't the image format, it's the file name of the image. The file name must have the suffix "_large" (e.g. "custom_note_bg_large.png") in order for it to work. Then you'd use:

PHP Code:
AddNote("NoteEntry""custom_note_bg"); 

How come is not working? Just like YC said

AddNote ( "something99", "image99" );

language file:
Quote:<CATEGORY Name="Journal">
<Entry Name="Note_something99_Name">Note Title</Entry>
<Entry Name="Note_something99_Text">Note Content</Entry>
</CATEGORY>

Files
Quote:image99_large.jpg
image99_icon.jpg

For me, any format for the image worked, (but only dds, tga and png allow transparency).


RE: Note question, Can't really get it to work... - DnALANGE - 12-10-2013

I already get it to work.
Thanks anyways.
Solved!