Author Topic: A way to display mod information  (Read 2197 times)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
A way to display mod information
« on: September 12, 2013, 12:13:44 PM »
Hello,

Is there any way for WeiDU to display the content of:

title/name of the mod VERSION AUTHOR

right after we run Setup-ModName.exe ?

Example:

Code: [Select]
WeiDU version 23113
This is a non-stable version. Unless you're sure about what you're doing, consider downgrading.
Using Language [Polski]

Using lang\pl_pl/dialog.tlk and lang\pl_pl/dialogF.tlk

Test Mod 0.3

AL|EN (you@example.com)

Install Component [ALIEN NPC - BG2 - Polski]?
[R]e-Install, [N]o Change or [U]ninstall or [Q]uit?

http://img11.imageshack.us/img11/7844/lbq8.png
« Last Edit: February 08, 2016, 12:43:33 PM by AL|EN »
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: A way to display mod information
« Reply #1 on: September 13, 2013, 02:11:55 AM »
Since some modders are absent and AUTHOR information(which means not a name, but a valid e-mail address in some cases) is not valid, and other authors would prefer not to display this, I'd propose this to be made optional, if at all.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: A way to display mod information
« Reply #2 on: September 13, 2013, 06:28:47 AM »
WeiDU has no real concept of the name of the mod. The closest would be the name of the TP2 file, which may or may not be informative (e.g., fl#amm.tp2) and may or may not correspond to the name of the mod folder.

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Re: A way to display mod information
« Reply #3 on: September 13, 2013, 09:03:51 AM »
But can WeiDU just read this information from AUTHOR variable? And maybe we can add EMAIL variable also ? And then just display this information or not display it, based on something like MODINFO 1/0 from tp2. What do you think?
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline DavidW

  • Planewalker
  • *****
  • Posts: 316
Re: A way to display mod information
« Reply #4 on: September 13, 2013, 12:42:26 PM »
Hang on. If you're choosing from within the tp2 whether to display it in any case, why not just put a PRINT statement in the tp2?

Code: [Select]
ALWAYS
    ACTION_IF !VARIABLE_IS_SET have_said_hello BEGIN
        OUTER_SET have_said_hello=1
        PRINT "This mod is called mymod, and is written by myname"
    END
END

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Re: A way to display mod information
« Reply #5 on: September 13, 2013, 01:40:53 PM »
Hang on. If you're choosing from within the tp2 whether to display it in any case, why not just put a PRINT statement in the tp2?
Code: [Select]
ALWAYS
    ACTION_IF !VARIABLE_IS_SET have_said_hello BEGIN
        OUTER_SET have_said_hello=1
        PRINT "This mod is called mymod, and is written by myname"
    END
END
I don't know, you tell me  ;) I just want to display such information before choose of the installation of the mod/components. Can you show me where is should put those lines? Right now, inserting them before "BEGIN @0" cause error.

I try also put only PRINT "This mod is called mymod, and is written by myname" before BEGIN @0 but same error. Putting it after BEGIN @0 works but that is not what i want. Anz chance to allow PRINT before BEGIN ?
« Last Edit: September 13, 2013, 01:46:41 PM by AL|EN »
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline DavidW

  • Planewalker
  • *****
  • Posts: 316
Re: A way to display mod information
« Reply #6 on: September 14, 2013, 02:34:50 AM »
In the Preamble (the bit of the tp2 file before any BEGIN component commands) there is space for a set of commands that are executed at the beginning of every command; that's the ALWAYS block. However, it won't be executed until you actually try to install a component, so it's not quite what you need.

A better way to do that would be to override some of the hardcoded strings WEIDU displays in starting up. If you look in the WEIDU download folder, under examples/prompts.tra, you'll see that an awful lot of WEIDU hardcoded strings can be overridden by setting translation strings with codes less than 0. So if you're au fait with how the translation-file system works, you can do it that way. (If you're not, there are various tutorials, including in WEIDU itself.)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Re: A way to display mod information
« Reply #7 on: September 14, 2013, 06:15:22 AM »
I know how translation system works, but to achieve what I want, I would have to change "BETA warning" string. It's impossible and it would be a very ugly hack. If this isn't to much work, I request to enable PRINT before BEGIN.
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: A way to display mod information
« Reply #8 on: September 14, 2013, 07:28:29 AM »
I might be able to swing a new TP2 flag that could print an arbitrary message before components are handled. But that would be a feature for WeiDU 233.

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Re: A way to display mod information
« Reply #9 on: September 14, 2013, 08:06:52 AM »
I might be able to swing a new TP2 flag that could print an arbitrary message before components are handled. But that would be a feature for WeiDU 233.
No problem, I think that there are much more important functions to add ;)
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: