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

A question for the developers:: Is the Sort Order in Quest Journal (Flashobject) hardcoded?

+
Prev
  • 1
  • 2
First Prev 2 of 2

Go to page

jcdenton99

jcdenton99

Forum regular
#21
Sep 10, 2015
@TheZnosko or @DanForever:
Marcin Momot has referred me to you.

My problem is:
A new Mod for witcher wild hunt will allow a new sort order in the confusing quest journal.

In the journalQuestMenu.ws file (\scripts\game\gui\menus) in function PopulateData ():
I send the entire flash array "l_questsFlashArray" to my new Sortroutine:
At Line 297:
if( l_questsFlashArray.GetLength() > 0 )
{
//---=== modJCDQuestJournalSorting ===---
modJCDSortQuestJournalInstance.modSortQuestJournalFlashArray(l_questsFlashArray);
//---=== modJCDQuestJournalSorting ===---
I hooked there my sortfunction, which re-sort the flash array (Quest grouped by type was observed) before
it is passed to the function
m_flashValueStorage.SetFlashArray (DATA_BINDING_NAME, l_questsFlashArray).

Unfortunately, the works did not appear, in the game I always see the same old sort order.
What am I doing wrong?

Best Regards and many thanks
JC
 
  • RED Point
Reactions: rootsrat
D

DanForever

Rookie
#22
Sep 16, 2015
@jcdenton99
Once the journal entries have been retrieved by scripts, they aren't ever passed back to native code. It's possible that some sorting happens in flash, but I think you should still have some control over what happens.

My advice would be to experiment, see if you can insert some custom values into certain quests and see if it does what you think it does. Also, check out jounalBaseMenu.ws and journalQuestMenu.ws - they might actually be more what you're after
 

Guest 2364765

Guest
#23
Sep 16, 2015
DanForever said:
@jcdenton99
Once the journal entries have been retrieved by scripts, they aren't ever passed back to native code. It's possible that some sorting happens in flash, but I think you should still have some control over what happens.

My advice would be to experiment, see if you can insert some custom values into certain quests and see if it does what you think it does. Also, check out jounalBaseMenu.ws and journalQuestMenu.ws - they might actually be more what you're after
Click to expand...
Oh look, a CDPR employee talking about Wscript.

Would it be possible for you to shed some light on the topic of global events and how timers work?
Is it possible to have a working timer inside a custom class?
 
  • RED Point
Reactions: web-head91
Wasteland_Ghost

Wasteland_Ghost

Senior user
#24
Sep 16, 2015
DanForever said:
@jcdenton99
Once the journal entries have been retrieved by scripts, they aren't ever passed back to native code. It's possible that some sorting happens in flash, but I think you should still have some control over what happens.

My advice would be to experiment, see if you can insert some custom values into certain quests and see if it does what you think it does. Also, check out jounalBaseMenu.ws and journalQuestMenu.ws - they might actually be more what you're after
Click to expand...
Sorting does happen outside of the ws file and inside panel_journal_quests.gfx. Not in native code, but in actionscript. I had similar problems with inventory sorting as it also happens in actionscript.

And I have related question/request :) Could wcc_lite at least provide uncompressed gfx files and allow for re-importing of these into redsfw?
 
jcdenton99

jcdenton99

Forum regular
#25
Sep 18, 2015
DanForever said:
@jcdenton99
Once the journal entries have been retrieved by scripts, they aren't ever passed back to native code. It's possible that some sorting happens in flash, but I think you should still have some control over what happens.

My advice would be to experiment, see if you can insert some custom values into certain quests and see if it does what you think it does. Also, check out jounalBaseMenu.ws and journalQuestMenu.ws - they might actually be more what you're after
Click to expand...
@DanForever:
Well, I've taken to heart your advice and a bit in the codes experimented ;-)

I've attached the contents of the following variables in the title string:
(see my attachment)
T = tag for l_questsDataFlashObject. "Tag"
G = group tag for l_questsDataFlashObject. "DropDownTag" and. "DropDownOpened"
Idx = My arrayindex sorted by Quest-Title
We view this content here before these vars are converted by the function NameToFlashUInt ().
I believe that the flash will be sorted by l_questsDataFlashObject. "Tag" (FlashUIINT?) (?).

Unfortunately, I can not study the function NameToFlashUInt () because it is imported from the engine.

My questions:
Can you take out this sort function in ActionScript for the the next patch, as
the Journal Quest anyway seems not properly sorted.
So we could add our own code for sorting.
Or as already user @Wasteland_Ghost asked:
Could wcc_lite at least Provide uncompressed gfx files and allow for re-importing of thesis into redsfw?

Last not least:
As I intend to offer sorting options in the game menu,
can I enhance the localization strings (en/de.w3strings) for more items?

My Attachment (Debug-pic):
View attachment 24898


Best Regards
JC
 

Attachments

  • witcher3_debug_QuestJournal_ClosedQuests.png
    witcher3_debug_QuestJournal_ClosedQuests.png
    183.2 KB Views: 18
Last edited: Sep 18, 2015
jcdenton99

jcdenton99

Forum regular
#26
Sep 24, 2015
I have the journal code explored down to the lowest angle.
Including the parent classes.
In some event functions, I inserted and tested my code:
(OnJournalTabSelected(), OnMenuShown(), OnQuestSelected(), OnEntrySelected etc.)

No chance!
My code runs, I can even hide parts of, for example, "Completed Quest" section.
But, damn it, the assorted flash array is jumbled by Flash-ActionScript.

Therefore my request to the developers:
If you can tuck no longer working in the GUI,
then please take out the (forced) sorting function in ActionScript,
as the Journal Quest anyway seems not properly sorted.
So that we can implement our own sort code as mod.

The only thing I can do at the moment is:
Maybe a mod for completed/failed quest sections with
inserted colored "quest type: " in first position of area-line string - (see my attachment)

So you can find out faster when scrolling down the list (on scroll bar with mouse)
with a look to the colors + Questtype the completed quest.

My attachment for example quest-type insert colored in area-line of completed quest:
View attachment 25098


Best Regards
JC
 

Attachments

  • witcher3_completed_quest_show_quest-type_in_arealine.jpg
    witcher3_completed_quest_show_quest-type_in_arealine.jpg
    141.7 KB Views: 16
Prev
  • 1
  • 2
First Prev 2 of 2

Go to page

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.