How to export a .bullet file from blender - export

I am trying to export a Rigid Body from blender to a .bullet file using the python script using the following video as a guide:
https://www.youtube.com/watch?v=fv-Oq5oe8Nw
The weird thing is that sometimes the .bullet files are created but sometimes does not. Also in some other projects the .bullet file, never appears. Does anyone knows why?:/

I've written an add-on for Blender which automates exactly this task, and so far seems to work flawlessly. It's available on GitHub: https://github.com/V0idExp/blender-bullet-export
After having installed it via File -> User Preferences -> Add-ons window, select an object and invoke the exporter via File -> Export -> Bullet physics data (.bullet)

Related

Can't play godot game as a software in pc

I made a game in Godot and exported it in release mode in Desktop as exe file.
But, it also created a .pck file and a highscore.data file.
I want to create it as an installable application and I don't want the highscore file in front.
What can I do? I also want to publish it.
I am new in Godot and this is my first game.
Installers are usually wrappers, aside applications that extract the main app to specific directory. Godot doesn't provide functions to create one. If you really need installer, you can write one or just generate with tools like NSIS, Inno Setup and others...
Separate .pck file can be embeded by enabling "Embed Pck" option in export settings.
Screenshot
I'm not sure what highscore.data file is, but it looks like something creating from code. Use user:// prefix (like user://highscore.data) for file paths to create them in app_userdata directory (more in docs).
So if you use this two options, you will get a single .exe file with game.

My installed WPF app is crashing while trying to create a file

I have a problem with my WPF application (a simple clicker game). I've just made a deployment/created a setup project using Microsoft Visual Studio Installer Projects extension for Visual Studio. Everything seemed to work fine, setup works good (tested on other computer) and furthermore the installed application almost works correctly. The only exception is a button calling function which is creating a new txt (something like a draft of a "save" file) file in a folder where the application is installed. Clicking this button cause instant crash of the whole application. Nothing else happens, no error message, the app just turns off.
I assume that the problem lies in access rights to the folder/administrator rights.
I've added txt file with the same name in the application folder using "File System" window in setup project, deployed and installed again. Even when the file exists the problem happend again (probably because of access rights when trying to override file content).
It's may be important that everything worked while running app through VS, also using .exe works fine on any computer. The problem is only with application installed using setup.
I'm not sure where the problem is so it's hard to show some code, to be honest i'm not even sure if it's a problem with code, maybe it can be solved with setting some setup project properties?
I would like to store some data locally between two sessions, i've choosed txt file because it's light and simple even if it's not the most elegant way.
I expect that installed application will be able to create and override txt file in it's folder.
P.S. if you need any code, screenshots or information about my setup please let me know in comments section, I will provide what's necessary
At the moment you install your program you're having administrator-rights. So the folder where your application is, also was created with administrator-rigths.
If you want to store data to this folder, you'll have to run your application as administrator. (not the best idea)
Otherwise you can change your code to write your file at runtime to a different location where you don't need administrator-rights.
For example:
string path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
will give you: "C:\Users\MyUserName\AppData\Local"
string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
will give you: "C:\Users\MyUserName\AppData\Roaming"
string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
will give you: "C:\Users\MyUserName\Documents"
And some error-handling around the saving of the file would be very nice and helpful ;)
Thank you everyone for solution and knowledge, the problem was as I assumed (access to the path denied).
I was using this code to create a path:
Directory.GetCurrentDirectory() + "\\SyntyhCitySave.txt";
Creating a file in a special directory instead of application folder works, that's the solution for my problem:
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\SyntyhCitySave.txt";
Tomtom answer marked as accepted.

Extremely simple app and a text file, best way to distribute on Windows Store?

I have an extremely simple application I'd like to distribute on the Windows Store. This is the first I've looked at Store.
The entire project consists of the exe and readme.txt. The app has a button that opens a second window and displays the contents of the readme.
The exe will be packaged using Desktop App Converter (DAP). Is there a way I can add the text file to the package as part of the DAP process or post-process?
I know I can put the file inside the exe as a resource, but I'd like to avoid doing that simply so the user can open it in their own text editor as well.
Is there a way I can add the text file to the package as part of the DAP process or post-process?
You could firstly use DAC tool to convert your WPF application. Then you could modify the packaged app by adding the text file into visual assets folder:
Then you need to manually generate a new Package Resource Index file and repackage your app using MakeAppx tool.
You could open your command tool and Change directory to the package's root folder, and then create a priconfig.xml file:
makepri createconfig /cf priconfig.xml /dq en-US
Create the resources.pri file(s) by using the command
makepri new /pr <PHYSICAL_PATH_TO_FOLDER> /cf <PHYSICAL_PATH_TO_FOLDER>\priconfig.xml
For example: makepri new /pr c:\MYAPP /cf c:\MYAPP\priconfig.xml
Finally, you need to generate a new package:
makeappx pack -d "C:\VLCUWP\VLCUWPApp\VLCUWPApp\PackageFiles" -p "C:\VLCUWP\VLCUWPApp\VLCUWPApp\VLCUWPApp.appx".
For more details, please refer to Create an app package with the MakeAppx.exe tool.
With Visual Studio 2017 Update 4, this has become much easier now. You don't have to use the Desktop App Converter for projects like this anymore, you can do the packaging directly and easily in VS with the new Packaging Project type. You can just add that to your WPF source project and it will take care of packing the EXE and the text file and whatever else you want to package into the .appx package.
Here is a blog post explaining the details:
https://blogs.windows.com/buildingapps/2017/10/18/visual-studio-2017-update-4-makes-easy-modernize-desktop-application-make-store-ready/

C/C++ Code generation from xcos in scilab

I've developed a model in xcos in scilab and I'd like to generate the C/C++ code of this model so that I can deploy it in embedded system.
However the issue is that the Code generating item in Tools menu is disabled. I guess it means I don't have the tool which converts the graphical model into code. I'm running linux.
Could you please help me with finding the plugin to generate the code?
You might have already done it, but would be useful for others.
The answer is X2C software, can be downloaded from - http://www.mechatronic-simulation.org/download/
Download the zip file, unzip it and navigate to "X2Copen-v1028-2016-09-10\X2C\System\Scilab\Scripts" and run the file "setup.sce" from scilab console.
You can run this file just by drag and drop to scilab console.
Start XCOS from scilab and create your model, then press "Start communicator" and "Transform model and push to communicator". You will see a dialog box for connection configuration, choose appropriate and download.

Microsoft Project Export Map, copying the map itself

I have created a project export map in Microsoft Project->File->Save As->Type .xlsx->Selected Data->Use Map-> and have created a map for export.
Is there a way to copy the map itself to another install of Microsoft Project on a different computer.
Yes. You need to put the map into an .mpp file. If it's not in an .mpp file already, use the Organizer to copy it from the Global to an .mpp file and take that file to the other computer and use the Organizer to copy it into that computer's Global.
The Organizer can be found here:
In Project 2007, from the menu choose: Tools -> Organizer...
In Project 2010, choose: File -> Info -> Organizer
p.s. This is technically a superuser.com question as it is related to the application and not programming .

Resources