Forums
Games
Cyberpunk 2077 Thronebreaker: The Witcher Tales GWENT®: The Witcher Card Game The Witcher 3: Wild Hunt The Witcher 2: Assassins of Kings The Witcher The Witcher Adventure Game
Jobs Store Support Log in Register
Forums - CD PROJEKT RED
Menu
Forums - CD PROJEKT RED
  • Hot Topics
  • NEWS
  • GENERAL
    THE WITCHER ADVENTURE GAME
  • STORY
    THE WITCHER THE WITCHER 2 THE WITCHER 3 THE WITCHER TALES
  • GAMEPLAY
    THE WITCHER THE WITCHER 2 THE WITCHER 3 MODS (THE WITCHER) MODS (THE WITCHER 2) MODS (THE WITCHER 3)
  • TECHNICAL
    THE WITCHER THE WITCHER 2 (PC) THE WITCHER 2 (XBOX) THE WITCHER 3 (PC) THE WITCHER 3 (PLAYSTATION) THE WITCHER 3 (XBOX) THE WITCHER 3 (SWITCH)
  • COMMUNITY
    FAN ART (THE WITCHER UNIVERSE) FAN ART (CYBERPUNK UNIVERSE) OTHER GAMES
  • RED Tracker
    The Witcher Series Cyberpunk GWENT
THE WITCHER
THE WITCHER 2
THE WITCHER 3
MODS (THE WITCHER)
MODS (THE WITCHER 2)
MODS (THE WITCHER 3)
Menu

Register

[SCRIPT] Show Object description On Used

+
J

jbaudrand

Senior user
#1
Sep 26, 2008
[SCRIPT] Show Object description On Used

Hello,this is my first time with d'jinni, And i'm trying to understand how it works.I simply add TnZ's script to show the description of an objet in OnUsed and turn Useable to TRUE#include "inc_gui"void main(){ ShowObjectDescription(OBJECT_SELF);}Hit F7 compileso D'jinni save the script in neverwinter script source. ok...I launch the module, and when I click on placeable, console told me Couldn't load NCS nameofthescriptI know it's probably simple... :'(
 
A

ailinon

Senior user
#2
Sep 28, 2008
Did it compile properly, did a file nameofthescript.ncs get created?
 
N

nandusso

Senior user
#3
Sep 29, 2008
@ jbaudrandI did the same and the compiler said me "file not found" (inc_gui), so I put in OnUsed the original script "sg_tooltips", and it works! The object that has to show the description needs a Tag.bye
 
A

ailinon

Senior user
#4
Sep 29, 2008
Every time you save or compile an NSS script, be very careful to watch the log (bottom window) for compiler messages. Anything in red means there's something wrong and your script will NOT work.
 
J

jbaudrand

Senior user
#5
Sep 29, 2008
thanks Ailinion and Nandusso to try to help me!!alinion: I hit F7 but the script remains a .nss files not .ncs ??? I think you put the finger on my problem.. and I still can't figure why it doesn't work...Nandusso: your answer make me think I probably miss something important, I can't find "sg_tooltips" in the list of available script... maybe it's because the script is in the bif stuff? did you unbif game ressource?
 
A

ailinon

Senior user
#6
Sep 30, 2008
jbaudrand, what error message appears in your "Aurora Log" window? There must be something that the compiler tripped over.Also, for nonexistent scripts - you may unbif them, they're there, but you may also use names of non-unbiffed scripts, the game will find them when needed.
 
N

nandusso

Senior user
#7
Oct 1, 2008
jbaudrand said:
Nandusso: your answer make me think I probably miss something important, I can't find "sg_tooltips" in the list of available script... maybe it's because the script is in the bif stuff? did you unbif game ressource?
Click to expand...
Yes, I unbiffed them to see the name of the files, and in fact I didn't find among the ncs scripts the file "inc_gui".bye.. at least I remember so, because for the moment my game installation is "out of order"... :p
 
J

jbaudrand

Senior user
#8
Oct 1, 2008
Ailinon:yes the script is saved in nss because compiling doesn't work, here's a snapshot:the aurora log says:ERREUR FICHIER INTROUVABLE=ERROR FILE NOT FOUND:/ what is the path c:/docs/.../thewitcher/temp/_ressourceunpacktmp? Why it's not saved in d: like the game?As you can see I just copy and paste the script from TnZ, I probably miss something (as a newbie)...Nandusso: So, it's not required to extract them to use them, that's great, but... is there an index of all biffed scripts somewhere?
 
A

ailinon

Senior user
#9
Oct 1, 2008
The documents and settings path is where your currently edited module is temporarily saved."inc_gui" is missing and it's a known problem. Just use this instead:void main(){ string sTag = GetTag(OBJECT_SELF); string sOperation = "displayTooltipForObject('"+sTag+"')"; RunClientLua(sOperation);}That's what that function was supposed to do, anyway.-- Sinus
 
J

jbaudrand

Senior user
#10
Oct 2, 2008
:beer: thanks I'll try it tonight!!!
 
J

jbaudrand

Senior user
#11
Oct 2, 2008
Thanks Ailinon!! it works, I have this simple question:Where did you learn scripting? is there a manual somewhere?I let the code here for other one who want to use it AND find it easily: [script] Show object's Description when left click on it (must be placed in OnUsed)
Code:
void main(){  string sTag = GetTag(OBJECT_SELF);  string sOperation = "displayTooltipForObject('"+sTag+"')";  RunClientLua(sOperation);}
 
A

ailinon

Senior user
#12
Oct 3, 2008
The game files themselves have a ton of information to be learned from them, if you dig deep enough. Of course, there's been a significant amount of RED help over at the Polish forums.
 
G

Gamewidow

Forum veteran
#13
Oct 3, 2008
i really wish some of that help would migrate over here :(
 
A

ailinon

Senior user
#14
Oct 4, 2008
Some of it does ^^; Ask and ye shall receive, at least if I'm available ;P
 
Share:
Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email Link
  • English
    English Polski (Polish) Deutsch (German) Русский (Russian) Français (French) Português brasileiro (Brazilian Portuguese) Italiano (Italian) 日本語 (Japanese) Español (Spanish)

STAY CONNECTED

Facebook Twitter YouTube
CDProjekt RED Mature 17+
  • Contact administration
  • User agreement
  • Privacy policy
  • Cookie policy
  • Press Center
© 2018 CD PROJEKT S.A. ALL RIGHTS RESERVED

The Witcher® is a trademark of CD PROJEKT S. A. The Witcher game © CD PROJEKT S. A. All rights reserved. The Witcher game is based on the prose of Andrzej Sapkowski. All other copyrights and trademarks are the property of their respective owners.

Forum software by XenForo® © 2010-2020 XenForo Ltd.