Jump to content


Photo

How to assign a name to a drink?


  • Please log in to reply
15 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 17 May 2017 - 12:20 PM

When creating a tavern, a drink is added with a button on the bottom of the page in Near Infinity. When that is clicked, this is what the properties of a drink look like.

 

drinks.jpg

 

I don't see how I could assign a name here without picking a definite string in the tlk. A drink is not a stand-alone file. How does Weidu handle this?



#2 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 17 May 2017 - 12:55 PM

You don't have the hexagonal attribute (or offset ) to show you what the start string is... open the Options -> Show Hex Offset and put a marker on that corner and you can see it the next time you open the files.
In weidu, you copy the patent file, the .sto, edit the strings hexagonal offset of to be the string reference you want and that's that. You can add a new string reference to the games dialog.tlk file in NI... but that will come to haunt you as it will be only that in your game. While it's a bloody description of a hacksaw in some other game.

Edited by The Imp, 17 May 2017 - 12:57 PM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#3 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 17 May 2017 - 07:30 PM

Okay, I think it's safe to say Imp is going senile at this point and is becoming as helpful as readable.

 

You don't wanna add the drink names in the file creation, cuz it'll inadvertently cause a messup in the dialog.tlk.

Make sure you make enough drink slots in the Near Infinity, cuz you can't add them via weidu. If it's a name that already exists:

 

COPY whatever.sto override

GET_OFFSET_ARRAY drinks STO_V10_DRINKS

PHP_EACH drinks AS int => dr_off BEGIN

WRITE_LONG dr_off + 0x08 42069

END

 

For multiple drinks just repeat with nesting READ_LONG for alcoholic strength for identification. Or prices. Whichever.

Substitute WRITE_LONG for, uh, idk, OUTER_SPRINT and WRITE_ASCII if it's a new thing?? I dunno lmao it's 5 am and I'm tripping balls on this end.



#4 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 17 May 2017 - 07:34 PM

but basically yeah drinks aren't real it's just a fancy referential name for how drunk you get and how likely you're to get a rumor (useless, always, forever)



#5 temnix

temnix
  • Member
  • 983 posts

Posted 18 May 2017 - 04:47 AM

Don't be so hasty, Almateria. Rumors are great for flavor, and I'm exploring whether I can make them do more... Remember that rumors are drawn from a dlg - and there is at least one action the engine can execute inside that dlg: updating the journal upon getting certain rumors. Perhaps other actions can be hung on the end of those invisible replies as well.

 

But to test anything I need to start tanking up on custom drinks... From what I understand, no one has ever made any. How about explaining that code a bit? And the name has to be a new string, for compatibility. Obviously I can't know the number of the string if it's Weidu and not just my own setup.



#6 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 18 May 2017 - 05:12 AM

Remember that rumors are drawn from a dlg - and there is at least one action the engine can execute inside that dlg: updating the journal upon getting certain rumors. Perhaps other actions can be hung on the end of those invisible replies as well.
Holy hell, if you could reveal areas or start quests based on tavern rumours that would be rockin!

Edited by Creepin, 18 May 2017 - 05:14 AM.

The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)


#7 Gwendolyne

Gwendolyne
  • Administrator
  • 1016 posts

Posted 18 May 2017 - 05:33 AM

... From what I understand, no one has ever made any. How about explaining that code a bit? And the name has to be a new string, for compatibility. Obviously I can't know the number of the string if it's Weidu and not just my own setup.

Wrong. And at least 2 people gave you the answer.

 

Either you look for the hex offset references with NI and fill them with WeiDU:

 

COPY ~Gwendolyne/GWKeep01.sto~    ~override/GWKeep01.sto~    SAY STORE_NAME @4025 // Pub d'Alphonse
    SAY 0x00a4 @4031    SAY 0x00b8 @4032    SAY 0x00cc @4033    SAY 0x0108 @4034
/*
@4031    = ~Hydromel " Cœur de Cerf "~
@4032    = ~Bière du Souffle du Dragon~
@4033    = ~Cognac Fine Champagne~
@4034    = ~Cidre Casse-Rotule~
*/

 

Either you use the GET_OFFSET_ARRAY command using STO_V10_DRINKS (0x4c 4 0x50 4 0 0 0x14) as Almateria said.


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.


#8 temnix

temnix
  • Member
  • 983 posts

Posted 18 May 2017 - 09:56 AM

Both of those people rambled, contradicted each other and assumed the advice was obvious when it wasn't. What will it take to get you all to answer in full and clearly? This is a board for questions and answers, not hints. As for your own reply in the frame, if this is Imp's suggestion unfolded, then what about Almateria's concern, quote, "You don't wanna add the drink names in the file creation, cuz it'll inadvertently cause a messup in the dialog.tlk"?

 

I still appreciate the feedback, but almost all of you spice it with 50% annoyance every time, throwing in some random, haughty, sneering junk, like teenagers locked up in a classroom and measuring you-know-what. This isn't a freaking Merlin of the Year competition about who's the greatest wizard of the Infinity Engine or who can be the most cryptic. Even I outgrew that nonsense. What will it take to get you at a round table when a new idea presents itself, as here with names and actions for drinks, and discuss it, instead of flashing your privates at the pseudonymous crowd?



#9 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 18 May 2017 - 10:50 AM

a round table when a new idea presents itself,

Charles Bisson and King Diamond have this in mods that date back to 2004/2005, code for it can be found in their mods in abundance, even if Weidu today allows some improvement like this http://www.shsforums...nk/#entry595040

There is about a dozen mods around that use these features, have rumours open/advance quests or reveal areas/secrets.

 

Almost any mega-mod adding contents can be consulted if someone really needs advice to add a string (SAY 0xa4 @20730 >>> @20730 = ~Saerloonian Wine~) or APPEND a simple dialogue with some new lines and actions.

 

Of course the easier way is to insult everybody time and time again instead of investing the same amount of time to do some research for the basics.


Edited by Roxanne, 18 May 2017 - 10:52 AM.

The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#10 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 18 May 2017 - 10:50 AM

"You don't wanna add the drink names in the file creation, cuz it'll inadvertently cause a messup in the dialog.tlk"?
What you quoted is very true, IN Near Infinity !!!
In weidu, you absolutely should do it, as you can do it without messing up just the base game alone, as a weidu mod places the new dialog lines to the end of the dialog.tlk during it's install(if you actually make it install correctly). Dah ! And you need to know this to understand what all the others said. Apparently you didn't.

Edited by The Imp, 18 May 2017 - 10:53 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#11 Almateria

Almateria

    most garbage person

  • Modder
  • 969 posts

Posted 18 May 2017 - 01:00 PM

Manual insertion of strings through nearinfinity will fuck up the dialog.tlk sooner or later by scrambling reference points. That's why we use weidu for safe string additions to the dialog file.

 

...but yeah sorry for the lack of elaboration on new names for drinks, I keep taking too much ativan and then I get hazy and forget how to do stuff. Because I haven't ever been a weidu wizard. Or a programming one. Especially when weidu arrays aren't actual arrays lmao.

 

Gwendolyne's solution is pretty much the most barebones way to do the thing, though I'd still recommend the array code combined with SAYs. Hex offset of drink data is always 14 btw.

 

Rumors as quest actions are cool and should've been a thing in the main game. I can think of like at least three fitting occasions.

 

like teenagers locked up in a classroom and measuring you-know-what.

5" here



#12 temnix

temnix
  • Member
  • 983 posts

Posted 18 May 2017 - 01:46 PM

a round table when a new idea presents itself,

Charles Bisson and King Diamond have this in mods that date back to 2004/2005, code for it can be found in their mods in abundance, even if Weidu today allows some improvement like this http://www.shsforums...nk/#entry595040

There is about a dozen mods around that use these features, have rumours open/advance quests or reveal areas/secrets.

 

Almost any mega-mod adding contents can be consulted if someone really needs advice to add a string (SAY 0xa4 @20730 >>> @20730 = ~Saerloonian Wine~) or APPEND a simple dialogue with some new lines and actions.

 

Of course the easier way is to insult everybody time and time again instead of investing the same amount of time to do some research for the basics.

 

Yeah. Basics. Mods from 2004-2005. And a question it took head-scratching to answer - the drinks, I mean. And I ought to go to a megamod and search inside for I don't know what, because I haven't seen it yet, to get a simple answer.

 

Think before you reply.



#13 -InKal-

-InKal-
  • Guest

Posted 19 May 2017 - 04:38 AM

wow!! good to know BG modding community is much alive and kicking!!

 

no text ---> okocim mocne dubeltowe 7" -----> update value

 

PROFIT !!



#14 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 19 May 2017 - 06:07 AM

...
I wonder if that is some kind of highly elaborated spam.

The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)


#15 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 19 May 2017 - 06:17 AM

Nope... well unless all my posts are too, then in that case, that could be true...
Aka in case that was unclear, I have seen InKal in several IE forums.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#16 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 19 May 2017 - 09:20 AM

Oh, ok, my apology then!

The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)