MSPhysics 1.0.3 (16 October 2017)

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Bryan K » Sun Jul 17, 2016 11:04 pm

Anton, I'm having problems with the UI. Here is a screen shot. It will not size into my window nor can I resize it nor does it have tabs.

Win 7, SU 2015, 64 bit.

Any help would be very appreciated.
0
User avatar
Bryan K 
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Anton_S » Mon Jul 18, 2016 12:48 am

Bryan, I'm not sure what's going on there. Does this show up every time you open it? Have you tried refreshing it (F5)? If the problem still persists, open explorer, and paste this into the address bar: %appdata%\SketchUp\SketchUp 2015\SketchUp\Plugins\MSPhysics\css. Then verify that the folder contains chosen.css, dialog.css, and tabs.css.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Bryan K » Mon Jul 18, 2016 1:17 am

Anton_S wrote:Bryan, I'm not sure what's going on there. Does this show up every time you open it? Have you tried refreshing it (F5)? If the problem still persists, open explorer, and paste this into the address bar: %appdata%\SketchUp\SketchUp 2015\SketchUp\Plugins\MSPhysics\css. Then verify that the folder contains chosen.css, dialog.css, and tabs.css.


Thanks.

The files are there and F5 did not change the layout. Tabs are still not showing.
0
User avatar
Bryan K 
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby thomthom » Mon Jul 18, 2016 6:48 pm

What version of Internet Explorer do you have installed?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Bryan K » Mon Jul 18, 2016 8:25 pm

thomthom wrote:What version of Internet Explorer do you have installed?


v11
0
User avatar
Bryan K 
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby thomthom » Mon Jul 18, 2016 10:35 pm

Anton, are you using ENV variables to obtain the path?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Anton_S » Tue Jul 19, 2016 1:40 am

Brian, I'll test it out on my Windows 7 with IE11. So far it works fine on my Win7 and IE9.


Thomthom, as far as I recall I don't use ENV variables to obtain the paths. I rather modify one of them, particularly ENV['PATH'], so that msp_lib.so knows where to look for the required Dlls and this is only necessary on the Windows side. And instead of overwriting the ENV['PATH'] variable with the new path(s), I simply append another path to it. I don't think that should hurt other plugins or anything. Of course, I acknowledge that it would be a good idea to reset it to original paths after all the loading is done.
Edit: On the OS X Side I use install name tool to set the relative load path to the required dylibs. This can be done with xCode by adding a post build script.
0
Last edited by Anton_S on Tue Jul 19, 2016 7:22 am, edited 1 time in total.

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Bryan K » Tue Jul 19, 2016 2:26 am

Thanks Anton. It's odd because the program installed without any trouble.

Is there a specific order the AMS library and MS Physics should be installed? I ask because I installed MS first, then AMS second.
0
User avatar
Bryan K 
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Anton_S » Tue Jul 19, 2016 6:00 am

Bryan, the order doesn't matter. I tested it on Win7 with IE11 and it works very well. I could reproduce what you have only by renaming/removing the CSS folder. So I don't know. It looks like the dialog.html can't determine the CSS paths or the CSS folder or the files within it are missing.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Anton_S » Tue Jul 19, 2016 7:37 am

faust07 wrote:Hi Anton, do you see an opportunity to revise your MIDI-Piano for version 0.9.0?

Hi faust. I updated the MIDI piano a few days ago. It should work fine now :)
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby faust07 » Tue Jul 19, 2016 9:16 am

Hi Anton. Thank you very much! I've found it already. I enjoy the magic sound. PituPhysics updated his MSPhysics models too. So there is much stuff to learn. :thumb:
On my side, on Win7 and Win8.1 with IE11 MSPhysics works like a charm (except to record Replay...). :fro:
0

faust07 
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Bryan K » Wed Jul 20, 2016 4:52 am

All paths and files are verified in the right location. Everything seems to work except the UI menu tabs.
0
User avatar
Bryan K 
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Anton_S » Wed Jul 20, 2016 8:26 am

Bryan, if everything worked fine, your UI should have looked like this:
msphysics_ui.png

The screenshot that you posted above resembles a UI with missing CSS/JS files, which make it look/work improperly. Can you once again ensure that all of these files exist in your SU2015 plugins folder because at the moment I have no idea what could be the other cause:
  • MSPhysics/css/chosen.css
  • MSPhysics/css/tabs.css
  • MSPhysics/css/dialog.css
  • MSPhysics/css/expander.css
  • MSPhysics/js/jquery.js
  • MSPhysics/js/chosen.js
  • MSPhysics/js/chosen.js
  • MSPhysics/js/ace/ace.js
  • MSPhysics/js/ace/ext-statusbar.js
  • MSPhysics/js/dialog.js
  • MSPhysics/js/expander.js
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.0 (July 10, 2016)

Postby Bryan K » Wed Jul 20, 2016 7:44 pm

The only difference I see is that the file path I have includes "Roaming"

I really appreciate you taking the time to help with this. I'm sure we'll figure it out. Thanks again.
0
User avatar
Bryan K 
 

Re: MSPhysics 0.9.1 (July 26, 2016)

Postby Anton_S » Tue Jul 26, 2016 11:31 am

Announcing 0.9.1.
Refer to CHANGELOG for info: http://www.rubydoc.info/github/AntonSyn ... ANGELOG.md

Faust, the save Replay data to model should be working now.

Bryan K, I think the dialog displayed improperly because HTML files used HTML5 DOCTYPE deceleration. Try this version as it might be fixed here.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.1 (July 26, 2016)

Postby Bryan K » Tue Jul 26, 2016 11:03 pm

Thanks Anton. Will do.
0
User avatar
Bryan K 
 

Re: MSPhysics 0.9.1 (July 26, 2016)

Postby faust07 » Tue Jul 26, 2016 11:34 pm

Thanks for the improvements! But still have some problems:
- Full Screen Mode is not properly stored in MSP UI (still active but no check mark in the box).
- If one will store a large simulation in Replay there should be an information about the processing in the status bar. It could be that minutes nothing happens and the user doesn't know what's going on.
- there are problems to save and to open model files with large simulations stored (- No temporary space available, - partial the access to the directory in which the model is to be saved is denied by the system, - bug splats, - SketchUp crashes etc.)
0

faust07 
 

Re: MSPhysics 0.9.1 (July 26, 2016)

Postby Anton_S » Wed Jul 27, 2016 1:53 am

Thanks for feedback, faust. I'll see what I can do about it. I was thinking about saving replay data into a separate file (that would be placed right where the model is), but hesitated because I was worried that two files would make it inconvenient. However, right now I'm thinking that saving Replay data into a separate file won't be a bad idea. You have any thoughts about it?
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.1 (July 26, 2016)

Postby faust07 » Wed Jul 27, 2016 8:06 am

Yes that is a good idea. These data should possibly be stored in a subdirectory with a copy of the model to ensure that the model geometry and the replay data match later. A warning that by changing the Physics-relevant geometry no replay is possible, would be good.
0

faust07 
 

Re: MSPhysics 0.9.1 (July 26, 2016)

Postby Anton_S » Thu Jul 28, 2016 11:40 pm

Faust, I'm thinking of making it simpler. The file would be stored at the same location of the model, named [model_name].mspr. It will load whenever the associated model is opened, and be written to whenever the associated model is closed (if replay data is changed). If for instance the geometry doesn't match or the data becomes corrupt, it will display an error message, and then erase the associated mspr file. I want to avoid creating subdirectories and saving copies of the model because it might make it a little complicated. If the user wants to make changes to the model, they could first make a copy of the model and the associated mspr file, then proceed making changes.
1

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby Anton_S » Fri Jul 29, 2016 4:46 am

Okay faust, I updated it. Upgrade to 0.9.2 and replay data would be saved to a separate file.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby junaramaro » Fri Jul 29, 2016 1:15 pm

my sketchup 2016 crashes when starting the simulation... don't know if i'm just wrong... without putting any parameters...i just click the play button... then boom, a bug splat T^T....
0

junaramaro 
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby faust07 » Fri Jul 29, 2016 3:32 pm

Anton, regarding separate replay data file:
after long tests and reducing my ice-mountain-model to the minimum the following results:
Small models with moderate simulations work very well (up to 15 - 20 Mb mspreplay file size).
Large models with much physics simulated and emitted objects (mspreplay files larger 20 Mb) work until you save and exit the model.
Opening the model again, crashes or stops during loading the replay data. The replay file is then lost.
The completely reduced file example (in my post with questions and examples) after saving Replay data, exit and reopen the model Replay runs but nothing happens.
In the test file you can see an other problem too - the viewport problem with emitted objects if you try it often enough. Running the simulation the viewport goes, comes back, running replay the viewport stays away. (think that some emitted object fly into space with high speed before end of its lifetime ...)
Thanks for your efforts!
0

faust07 
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby Anton_S » Fri Jul 29, 2016 10:24 pm

Junaramaro, more details would be preferred, like OS version, SU version, and of course the model that crashed.


Faust, thanks for testing. I'll see what I can do there.
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby micceo » Sun Jul 31, 2016 3:13 pm

Hi! Curious about this plugin but can't get it started.
I'm on SketchUp 2016, 16.1.1449 64 bit, Windows 10 Version 1511 (10586. 494)

Tried the .exe-setup and the .rbz, but it ends with the same error.

Code: Select all
Error Loading File C:/Users/Användaren/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics/main.rb
Error: #<Exception: An exception occurred while loading MSPhysics library. The exception occurred due to one or more of the following reasons:
- Encoding::CompatibilityError: incompatible character encodings: Windows-1252 and UTF-8
- Encoding::CompatibilityError: incompatible character encodings: Windows-1252 and UTF-8
>
C:/Program Files/SketchUp/SketchUp 2016/Tools/extensions.rb:197:in `require'
C:/Program Files/SketchUp/SketchUp 2016/Tools/extensions.rb:197:in `load'
C:/Users/Användaren/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics.rb:90:in `register_extension'
C:/Users/Användaren/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics.rb:90:in `<module:MSPhysics>'
C:/Users/Användaren/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics.rb:72:in `<top (required)>'


Plugin dir
Code: Select all
 Directory of C:\Users\Användaren\AppData\Roaming\SketchUp\SketchUp 2016\SketchUp\Plugins

2016-07-31  14:17    <DIR>          .
2016-07-31  14:17    <DIR>          ..
2016-07-31  14:13    <DIR>          ams_Lib
2016-07-31  14:18             1 577 ams_Lib.rb
2016-07-16  20:17    <DIR>          as_flatten
2016-07-16  20:17             3 070 as_flatten.rb
2016-07-31  14:13    <DIR>          MSPhysics
2016-07-31  14:17             3 498 MSPhysics.rb
2016-07-26  17:59             3 498 MSPhysics.rbx
2016-07-31  14:05    <DIR>          SketchUcation
2016-07-31  14:05             5 508 SketchUcation.rb
2016-05-21  00:35    <DIR>          su_advancedcameratools
2016-02-24  12:28             1 715 su_advancedcameratools.rb
2016-05-21  00:35    <DIR>          su_dynamiccomponents
2016-02-24  12:28             1 780 su_dynamiccomponents.rb
2016-05-21  00:35    <DIR>          su_sandbox
2016-02-24  12:28             1 706 su_sandbox.rb
2016-05-21  00:35    <DIR>          su_trimble_connect
2016-02-24  12:28             1 339 su_trimble_connect.rb
2016-05-21  00:35    <DIR>          su_webtextures
2016-02-24  12:28             1 299 su_webtextures.rb


Code: Select all
 Directory of C:\Users\Användaren\AppData\Roaming\SketchUp\SketchUp 2016\SketchUp\Plugins\MSPhysics

2016-07-31  14:13    <DIR>          .
2016-07-31  14:13    <DIR>          ..
2016-07-31  14:17            53 883 body.rb
2016-07-31  14:17            16 487 body_context.rb
2016-07-31  14:17             5 978 CHANGELOG.md
2016-07-31  14:17            24 128 collision.rb
2016-07-31  14:17             8 561 common_context.rb
2016-07-31  14:17             1 269 contact.rb
2016-07-31  14:17               230 controller_context.rb
2016-07-31  14:17             9 154 control_panel.rb
2016-07-31  14:13    <DIR>          css
2016-07-31  14:17           100 030 dialog.rb
2016-07-31  14:17             1 174 djoint_angular_gear.rb
2016-07-31  14:17             1 166 djoint_linear_gear.rb
2016-07-31  14:17             1 206 djoint_rack_and_pinion.rb
2016-07-31  14:17             6 759 double_joint.rb
2016-07-31  14:17             2 682 Examples.md
2016-07-31  14:13    <DIR>          external
2016-07-31  14:17             1 992 FAQ.md
2016-07-31  14:17               613 hit.rb
2016-07-31  14:13    <DIR>          html
2016-07-31  14:13    <DIR>          images
2016-07-31  14:17             6 904 joint.rb
2016-07-31  14:17             5 022 joint_ball_and_socket.rb
2016-07-31  14:17            48 285 joint_connection_tool.rb
2016-07-31  14:17             5 729 joint_corkscrew.rb
2016-07-31  14:17            10 167 joint_curvy_piston.rb
2016-07-31  14:17             7 951 joint_curvy_slider.rb
2016-07-31  14:17               677 joint_fixed.rb
2016-07-31  14:17             7 489 joint_hinge.rb
2016-07-31  14:17             4 307 joint_motor.rb
2016-07-31  14:17             5 645 joint_piston.rb
2016-07-31  14:17             5 645 joint_servo.rb
2016-07-31  14:17             3 513 joint_slider.rb
2016-07-31  14:17             5 683 joint_spring.rb
2016-07-31  14:17             7 322 joint_tool.rb
2016-07-31  14:17             5 900 joint_universal.rb
2016-07-31  14:17             2 819 joint_up_vector.rb
2016-07-31  14:13    <DIR>          js
2016-07-31  14:17             1 107 LICENCE.txt
2016-07-31  14:17             1 649 LICENSE.FLAC.txt
2016-07-31  14:17            25 892 LICENSE.mikmod.txt
2016-07-31  14:17                59 LICENSE.modplug.txt
2016-07-31  14:17               950 LICENSE.NewtonDynamics.txt
2016-07-31  14:17             1 625 LICENSE.ogg-vorbis.txt
2016-07-31  14:17            25 873 LICENSE.smpeg.txt
2016-07-31  14:17            49 927 main.rb
2016-07-31  14:17             3 945 material.rb
2016-07-31  14:17             1 424 materials.rb
2016-07-31  14:13    <DIR>          models
2016-07-31  14:17             4 881 MSPhysics.hash
2016-07-31  14:13    <DIR>          osx32
2016-07-31  14:13    <DIR>          osx64
2016-07-31  14:17            15 179 Overview.md
2016-07-31  14:17               428 README-SDL.txt
2016-07-31  14:17             1 019 README-SDL_mixer.txt
2016-07-31  14:17             2 948 README.md
2016-07-31  14:17           120 465 replay.rb
2016-07-31  14:17            10 556 scene_data.rb
2016-07-31  14:17               753 script_exception.rb
2016-07-31  14:17            12 618 settings.rb
2016-07-31  14:17           135 307 simulation.rb
2016-07-31  14:17             1 011 TODO.md
2016-07-31  14:13    <DIR>          win32
2016-07-31  14:13    <DIR>          win64
2016-07-31  14:17            14 115 world.rb
0

micceo 
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby TIG » Sun Jul 31, 2016 5:52 pm

You have a non-ASCII character in your Windows user-name [Användaren]
This is a well known and long running problem with Ruby.
Although the newer Ruby with v2016 is more forgiving, there are still some issues...

It's recommended you always avoid accents in your Windows user-name...

Can you try with an alternative user-name ?

The extension's author might be able to "force encoding" to UTF-8 for any strings it uses, like the user-path name etc - when in >=v2015...
But that's his fix for the future...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby micceo » Sun Jul 31, 2016 6:30 pm

I had "ä" as a suspected but didn't try another account.
Searched the forums here, but no hit on UTF-8 or Windows-1252.
Thank you for the swift response. I'll try out with another user account.
0

micceo 
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby Ralphxyz » Mon Aug 01, 2016 1:14 am

micceo wrote:Hi! Curious about this plugin but can't get it started.
I'm on SketchUp 2016, 16.1.1449 64 bit, Windows 10 Version 1511 (10586. 494)

Tried the .exe-setup and the .rbz, but it ends with the same error.



micceo, I had this problem! The solution was to use the 2015 Sketchup folder not the 2016 folder!

re: /AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/MSPhysics/

Had to be: /AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/MSPhysics/

This was for Sketchup 15 PRO!

Ralph
0

Ralphxyz 
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby Anton_S » Mon Aug 01, 2016 2:54 am

Ralph, you probably had another issue because I can reproduce this with SU2016 and Win10 on a custom-created account, named, Användaren.

TIG, MSPhysics does have path.force_encoding('UTF-8') if RUBY_VERSION !~ /1.8/. However, it could be the case that I missed it somewhere. I'll check it out.

Micceo, I'll look into it. Thanks for reporting.

Anton
0

Anton_S 
PluginStore Author
PluginStore Author
 

Re: MSPhysics 0.9.2 (July 28, 2016)

Postby TIG » Mon Aug 01, 2016 12:18 pm

Looks like the error occurs when setting up the extension.
Try forcing the encoding of the file path you pass to the extension making code in the loader RB...
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

cron

Who is online

Users browsing this forum: ErichAL, Kubamy and 16 guests

Visit our sponsors: