Calculate Free Disk Space On Ipad / Iphone Using Unity (C#) - c#

I have been looking through a lot of different place to find a way to check how much space a user has on his device.
I am developing a game with Unity (C#) for Ipad and I would like to check how much space is available before writing my save game.
This post seems to be the most popular : How to detect total available/free disk space on the iPhone/iPad device?
Unfortunately this is Objective-C and I am way too noob / junior to use it.
I know there are some API available (U3DXT is one of them), but I can't find a way to convert it or make it work. I am not an engineer, so please excuse me in advance if I don't use the correct words to explain what I'd like to do.
If someone could point me in the right direction or have an existing script in C# I could use. I know that DriveInfo.GetDrives() doesn't work on PC, but I saw somewhere it could be working on Mac (Ipad?). At least I will try it.
Thanks in advance.

Check this for iOS native
https://stackoverflow.com/a/8036586/1031944
and then call this function from unity3d c#
e.g
https://stackoverflow.com/a/9568232/1031944

Related

How to get WiFi-Signal Strength with Unity engine and C# on Android?

I need the WiFi strength of nearly access points to triangulate the position of the Android device user and show him the part of the building, he is located at the moment. It's for a location based game for new students at my university. There are easy ways with Java or Xamarin and C#, but i couldn't find a way to solve the problem using the Unity engine and C#. It there a way to get it?
I have a complete Android solution in Java from a fellow student and i tried to use AndroidJavaObjects to use that in my program, but without success. It seems to be too complex for that. Are there maybe other ways to use that Java Android code in Unity?
Thanks in advance for the help.

problems with accessing webcam output in c# application

i know this is most likely a duplication and i am truly sorry for that but most of the solutions i found was either +7 years outdated, bugged or consume so much memory
all i need is an efficient way to access the webcam to record and display to use it in a computer vision project to detect moving objects and such, with an HD output (using HD camera of course)
also if there is a library that would help with the computer vision that would also be great
any information, tips or experience would be highly appreciated, thanks in advance and have a wonderful day.
You could use AForge.net, it's available as a nuget package and gets the job done.
Here is an example of it. It's a winform application, but I use this library in WPF app as well.
[EDIT] Actually, I think I found what you're looking for, download this. It's a piece of code that has been written for a french azure contest. It's a motion detector written with aforge.net. There is 2 part to it, the first is a wpf client that capture movement. The second is an azure website where the image captured is uploaded automatically.

Screen scraper for creating a log of gathering in a RPG

I want to create a program that can log gathering in a RPG for me, the problem is that I dont know where to start. I know c++ and some c#, but I haven't got a clue on how to scan the screen.
What I've looked at:
Screen scraping (most info is on scraping HTML pages)
OCR (Most info
is on OCR on a image file, not an active window)
Spy++ (I haven't got
a clue)
I can do it with any language, but I'd prefer c++ or c# since that what I'm most experienced in
What is the best way to do it? anyone got some helpful links/tips?
example of something I'd like to know (amongst other things):
Would it be wise to make a screenshot like once every seccond and then analyze that image?
Should I learn and use windows API for this?
before you bash me:
Yes, I know that this will be a big project, nothing I expect to complete easily
Yes, I understand that I will have to learn more about programming to do this (that's part of the goal)
Yes, I understand that it might be more than I can handle at my current level of skill, but I'd like to figure that out by trying :)
Please help me, I really dont have a clue about where to start
If you are serious about creating this program I would suggest you forget about scanning the screen, image analysis gets very complicated very quickly.
Instead look into memory reading, the information shown in the game can also be read as a straight up value from the games working memory.
There are probably resources out there for your game already, google it.
World of Warcraft
Diablo 3
etc

Playing Flash swf files in XNA

Is this possible? It would be great..
I've tried:
http://fci-h.blogspot.kr/2007/06/how-to-play-flash-swf-inside-c.html
which gives me a attempted to read protected memory error
and
http://blog.debreuil.com/?p=35
which I just can't work out how to use - I just want the code to play a .swf file I've made already in my XNA game.
I would just love to be able to do cutscenes or live backgrounds in this way, especially if they can be streamed from file instead of preloaded.
Thanks a lot for any help!
Sorry, but this is not possible without extreme hard work that's just not going to be within your reach. (Or some painfully awkward method, like embedding a Webpage below your game)
On the bright side - there's pretty much no need for .swf embedding. Anything flash can do, XNA can do better!
Use animated images or videos for live backgrounds / cutscenes - or program them yourself in XNA using manipulation of static images - if you need help with that, post a new question asking for help with some specific thing you need done.
Also, if you want, you can ask for help converting Flash Actionscript to its C#/XNA equivalent - it can be done without too much work by anyone with a little experience in both languages.

GBA emulator wp7 in C#

I want to do a GameBoy Advance emulator for WP7 but I'm not sure where to start. Anyone can point me in the right direction? I know there is one for GB, maybe starting there would be a good idea. Any libraries or resources?
You can download the source for VisualBoyAdvance here: http://sourceforge.net/projects/vba/files/VisualBoyAdvance/1.7.2/
It's one of the most well known and reliable GBA emulators and it's written in C++, so it shouldn't be too hard to port over.

Categories

Resources