Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

New Version 3.1 online

- - - - -

  • Please log in to reply
28 replies to this topic

#1
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
Hi all.

Version 3.1 is now online.

Configuration wizard's been finished. Download it on the WPI homepage.


How to remove advertisement from MSFN

#2
Dynaletik

Dynaletik

    Senior Member

  • Members
  • PipPipPipPip
  • 652 posts
  • OS:none specified
  • Country: Country Flag
Hey hasi...really good work...but where is the save button in the options menu??
The options menu isn't always displayed well....On the right side there are missing some parts of the explanations.....or do i Need 1600 x 1200 for it? :P

And is it possible to put a example into the config menu that does not appear in the config.js so it is there even if you already added a prog?

#3
IGIdeus

IGIdeus

    Newbie

  • Members
  • 18 posts
In Options menu missing vertical scrollbar and buttons for save and cancel

Best regards
IGIdeus

#4
sonica

sonica

    Junior

  • Members
  • Pip
  • 71 posts
only vartical scrollbar is missing, if you use mouse scroll or keyboard you can scroll the window and see buttons

thanks for escape feature


i have another hint for this release but i don't know if javascript supports it

i'd like the possibility to popup options page when i dasabled options button.

i'd like to press some keybord combo ex: CTRL + O to bring options pane up, or at least to bring back options button.


and when options language configuration files will be avaible i can help translating it in italian

bye

sonica

#5
Dynaletik

Dynaletik

    Senior Member

  • Members
  • PipPipPipPip
  • 652 posts
  • OS:none specified
  • Country: Country Flag
no...the buttons don't appear even when I scroll down.

#6
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
The thing with the options dialog is that a string is too long (no spaces)

Edit common/optionswizardtemplate.htm, line 181

set it to
             <td width="90%">ToolTip CSS Style: TitleColor, TextColor, TitleBgColor, TextBgColor, TitleBgImag, TextBgImag, TitleTextAlign, TextTextAlign, TitleFontFace, TextFontFace, TipPosition, StickyStyle, TitleFontSize, TextFontSize, Width, Height, BorderSize, PadTextArea, CoordinateX , CoordinateY, TransitionNumber, TransitionDuration, TransparencyLevel , ShadowType, ShadowColor</td>

and all will be nice.

will be in next buxfix release.

#7
sonica

sonica

    Junior

  • Members
  • Pip
  • 71 posts
found a problem with escape feature:

i am not able to insert this:
cmd1[pn]=['cdrom', '$OEM$\\Install\\net_framework\\netfxsp1.exe']

if i manually edit config.js and insert that string then wpi loads it as:
cdrom', '$OEM$\Install\net_framework\netfxsp1.exe


and if i save from wpi it saves it as:

cmd1[pn]=['cdrom\', \'$OEM$\\Install\\net_framework\\netfxsp1.exe']



i don't know what to insert in form to have the right string

sonica

#8
BritishBulldog

BritishBulldog

    Member

  • Members
  • PipPip
  • 271 posts
@sonica,

what exactly are you trying to do?
looks like you want to install from CDROM?
then you should move your Install directory out of the $OEM$ directory first as this will always be copied to the hard drive!

put it in the root of your CD
then your cmd line should look like this
cmd1[pn]=['%cdrom%\\Install\\net_framework\\netfxsp1.exe']

To insert it in the config page you only need this
%cdrom%\Install\net_framework\netfxsp1.exe
in the cmd entry line

#9
sonica

sonica

    Junior

  • Members
  • Pip
  • 71 posts

@sonica,

what exactly are you trying to do?
looks like you want to install from CDROM?
then you should move your Install directory out of the $OEM$ directory first as this will always be copied to the hard drive!

put it in the root of your CD
then your cmd line should look like this

cmd1[pn]=['%cdrom%\\Install\\net_framework\\netfxsp1.exe']

To insert it in the config page you only need this
%cdrom%\Install\net_framework\netfxsp1.exe
in the cmd entry line

looks like you want to install from CDROM?
then you should move your Install directory out of the $OEM$ directory first as this will always be copied to the hard drive!


yeah, i want to do this. for what i know not everything inside $OEM£ is copied on hd, just things in $...$ subfolders



i was using that syntax, as written in an old wpi version, in fact that syntax still works in wpi

var cmd1=[]; // drive + Command Line 1, drive = 'systemdrive' or 'cdrom' or 'programfiles' or 'windir' or ''




however using %cdrom% avoid quotes problem


thanks

sonica

#10
MCT

MCT

    MSFN Junkie

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,291 posts
  • OS:none specified
  • Country: Country Flag
when i click "config" button the installation buttion is highlighted instead, so config doesnt open :wacko:

#11
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
No-no.
Well - the install-button is highlighted when you click on options or config. That's a bug (and fixing took about 2 seconds)

BUT : CONFIG OPENS !!!

It just takes some time ('bout 10 to 20 seconds) to render the HTML.

#12
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
Minor bugs fixed. Version 3.1.1 ;)

#13
Dynaletik

Dynaletik

    Senior Member

  • Members
  • PipPipPipPip
  • 652 posts
  • OS:none specified
  • Country: Country Flag
Do your dependencies work? when I use your config hasi, in debug mode he tells me about the deps...but if i mark ressource kit, he does not select Office... :unsure:

#14
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
you're right. something went wrong. no dependencies. aargh.

#15
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
bugfixed in Version 3.1.2.

#16
Astalavista

Astalavista

    MSFN loyalist

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,338 posts
which version had problems

#17
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
3.1.1

#18
Dynaletik

Dynaletik

    Senior Member

  • Members
  • PipPipPipPip
  • 652 posts
  • OS:none specified
  • Country: Country Flag
Works perfectly now for me hasi.

Now just remove the Disc path option. :P

Here is my WPI with Options and Config Button in the lang.js

I also updated the "txtUsage[lang]" Please look at it.

I only updated english and german...so the other languages have to be done!

#19
Dynaletik

Dynaletik

    Senior Member

  • Members
  • PipPipPipPip
  • 652 posts
  • OS:none specified
  • Country: Country Flag
Now how can I put several languages to the config page (to the configwizardtemplate.htm)?

#20
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
Thanks for your work Dynaletik. Incorporated it into my WPI - will be rolled out with next version.

To answer your question:

There's 2 new templates: 1 for the options wizard, and 1 for the config wizard. Both can be found in the common folder.

To make the multi-language the following steps need to be taken:
* For each fixed label on the page, you'd have to define a corresponding label in lang.js.
* At least the english language label must be defined.
* The fixed strings on the .htm template need to be replaced by (simple) scripts.

An example:

Original from optionswizardtemplate.htm
<td nowrap>Language</td>
lang.js has to be updated:
var lblOptionsLanguage=[];
...
lang = 'en';
...
lblOptionsLanguage[lang]=['Language'];
...
lang = 'de';
...
lblOptionsLanguage[lang]=['Sprache'];
...
Modified optionswizardtemplate.htm
<td nowrap>document.write(getText(lblOptionsLanguage));</td>

That's it. A lot of work to do, you see ?

#21
Dynaletik

Dynaletik

    Senior Member

  • Members
  • PipPipPipPip
  • 652 posts
  • OS:none specified
  • Country: Country Flag
When I do this...theres document.write(getText(lblOptionsLanguage)); instead of Language or Sprache. there has to be a "link" to the lang.js in the htm or??

#22
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
oh yes. sh...

this is because the contents are created dynamically. we'll have to find another way to do the substitutions there.
document.write only works while the page is actually loading. in this case the page is loaded already and we're only modifying the inner HTML of a specific tag.

#23
hasi001

hasi001

    Coder

  • Members
  • PipPipPip
  • 324 posts
There's a new Version 3.1.3. Options and config button texts and tooltips can be defined in lang.js now.

Some people complained about that HTML rendering for the config wizard taking so long. I've found another way of doing the rendering, called 'cached template'.

In debug mode you can find a stop watch on the left panel. it measures the time rendering takes. the options dialog has a new option called 'Config create mode'. There's 2 entries there - 'cached template' and 'read & replace'

For my small config, rendering takes about 3 second - cached template is faster only by milliseconds. but please try it out and post your results. THX.

Debug (upper panel) informs you of which rendering mode is used.

Also: if some guru's out there who could spend some of his time looking over config.js's code to speed it up ... please do !

#24
Astalavista

Astalavista

    MSFN loyalist

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,338 posts
has anyone noticed when they point to the decription it seems like it is having a epileptic seizures. it like popping in and out.

#25
MCT

MCT

    MSFN Junkie

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,291 posts
  • OS:none specified
  • Country: Country Flag
Old Method: 12828ms

New Method: 11804ms




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN