How to add elements to a layer ?
All  1-13  14-18

Previous
Next
 From:  bemfarmer
8733.14 In reply to 8733.13 
Well, I have become very good at creating nonexistent errors:-)
(I was using simple squares and circles for testing, and ran some tests on another (work) computer too.)

With correctly named files (including correct extensions), and without incorrectly named files (including no incorrect extensions),
AssignName and AssignPresetName seem to work correctly in MoI3 and MoI4beta.

Somehow in the past 5 years or so, I've acquired extra copies of the 2 .....dialog.htm files, which are incorrectly named
AssignNameDialog.js, and AssignPresetNameDialog.js. The extensions should be .htm.
Also present are the correctly named .htm files.

Also the PresetNames.txt file was not copied over to MoIBeta command folder.

I also have correct and incorrect versions for custom.ui, with _underline prefixes...

Supporting a zip of 3rd party scripts would be more work, and may have risks...
Maybe there could be a zip file of non-stock, non-third party, proven scripts?
Maybe a listing of the names of the good, valuable, third party scripts?
Then there are the "not ready for prime time scripts." :-)

- Brian

EDITED: 14 Dec 2017 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8733.15 In reply to 8733.14 
I've figured out two of my mistakes, which are based upon the fact that for AssignName.js and AssignPresetName.js, their respective ....Dialog.htm do not use the same name as the .js script. Using customui also influenced the problem.

1. When writing scripts, I developed the bad habit of renaming two scripts at once, for example: somexscript.js and some_script.htm, renamed to say _somexscript.js and _somexscript.htm, or somexscriptSAVE.js and somexscriptSAVE.htm, which works fine when both the .js and .htm have the same name.
In the case of AssignName and AssignPresetName, the respective ....Dialog.htm file has a different name, so there is a 50% or so chance of naming the AssignNameDialog.htm file to say _AssignNamesDialog.js which is wrong, and causes problems when present.

2. The second error is that when using AssignName.js, the AssignNameDialog CANNOT be named _AssignNameDialog.
( the PresetNames.txt file also cannot have an underline prefix.)

- Brian

My 3rd error was not copying PresetNames.txt to the MoI4Beta.

I think that I have been using the preview area of Windows (file) Explorer incorrectly as well...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8733.16 In reply to 8733.15 
Hi Brian, I'm glad you got it working now! Yes, renaming them might lead to mix-ups. I think Burr does have a .zip file collection of a whole bunch of scripts somewhere, let me see if I can find it. Ok I think this is it: http://moi3d.com/forum/index.php?webtag=MOI&msg=7841.6

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Rudl
8733.17 
I would like to have the possibility of layers and sublayers and so on, to organize big objects.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
8733.18 In reply to 8733.17 
Hi Rudl, I'm thinking that there could be "folders" for that, hopefully to use in the Objects section of the Scene Browser as well.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-13  14-18