Send data to my mobile game users remotely [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'am developing a Mobile game and i would like to send my users new levels (JSON files) every month. What is the best way to do that (FireBase, REST API, ...). Could someone help me to choose the best practices used in games ?

I think it's independent from game design or not.
You'll first have to think if you want to actively send the levels (using remote notifications), or if the app will check each and every month some web service if new data is available. In any case, the arbitrary "level" data has to be downloaded actively by the app.
Which technique you use depends on your own preferences. Maybe you should also think of some cloud storage like Amazon S3, this might scale better than an own-hosted solution if you expect high loads at the beginning of a month or so. This will narrow down your choices.
Transferring the data might also depend on the size to be transferred. I would almost always try to compress the data, and unzip it at the client site.
Update
You could also think of initially assigning each client a random day for downloading level data (only use day 1-28, not 1-31, or you might get problems with too-short-months), e.g. client 1 might download each 5th of a month, client 2 each 2nd, client 3 each 14th and so on. This will reduce the download peak to about 3%, because every day only 1/28 of your clients downloads new levels.

Related

When offline, how to manage data? IOS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like to know what are the best practices regarding, Modeling data when no network connection available, if the app you are building is cloud computing based, but still you want to be able to have basic functionality and I guess some persistent data?
PD: I am kind of new to IOS development
UserDefaults is okay for small bits of data that don't change often, but as it has to rewrite the entire user defaults dataset to a file each time a change it made, it is not robust enough for anything of volume or with frequent changes. For that you would want CoreData or a third party open source solution like Realm.io.
You can try to using the 'cache' where you store temporary data.
One way to achieve this is NSUserDefaults where you set a variable (let's say users profile photo) and when the user opens his app again, the image will be loaded even if there is no internet connection since its cached. Hope this helps!

How to make one page real-time in Rails app? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have an app that is already fully built, the only thing I'd like to add is real-time rendering of one of my pages.
Suppose it is a page with all the pizzas. When pizza is added to the database, I'd like page to show it without refreshing.
I know you can do it with websockets, but is there any easier way? Could, eg, AngularJS help here (as I understand it refreshes the page contents as soon as model is changed)?
Well you could make a small service in Angular that asks the server like every 15 secons or so, to see if there are new pizzas added to the database. (Say the last time you took the pizzas from the server you had 15 of them returned. Now you send that number 15 back with the check request and compare it with the database)
If so, it will call the query method in the pizza Angular service to fetch the new pizzas.
If this is a small table with often changing info then I would also suggest to migrate this model into Redis instead. Asking info repeteadly from Redis is a lot cheaper than it is to ask like this from a database.

How to create a poll on IOS? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
hi I’m new to IOS development i have developed only one application in iOS now i want to make a polling app in IOS i Google every where i did’t get a proper solution to make a polling app.
In my polling app i want get input poll form the user and i have to store in database and i have to calculate the value for the polling and i have to show the result how many people voted .
so please can any one suggest what is right way to make polling in IOS or is there any alternative way to make this.
thanks.
Assuming you want to store your results on a back end web server with a DB then you would first need to write some web services. I personally would suggest a combination of PHP and MySQL as they're both open source and relatively easy to get to grips with. I also recommend you use JSON as your data interchange format as it provides a human readable structure without the complexity of XML.
Once you have a functioning back end you would need to build an app with the appropriate data fields that you want in either one or multiple views. Personally I would put all of your questions into an array and then cycle through them changing the input controls if necessary. You can then add your answers to an NSMutableArray.
Once you have your complete answer set in your NSMutableArray you can serialise it to JSON and transmit it off to your web service.
There are many guides for getting started with JSON on iOS available, I would suggest you take a look at this one.
Your question is business specific (not to iOS, iPhone & objective C).
So I would suggest you to better try these APIs available in market.
support.polldaddy.com
Poll EveryWhere
TypeForm
Hope that helps.

How can we import data coming another erp? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a question concerning the impact of companies acquisition and its impact on the global
information system harmonization. as an example, let's take a company A using ABS ERP
and acquiring:
- Company B using Blue cherry ERP
- Company C using Styleman ERP
How can we harmonize and give company A real time access to data from it's affiliates ERPs?
Thank you !
You can either use ETL to move data from one database to another, and have the same schema but this would be an overkill.
Another option would be to create services which sit on top of one ERP to extract data, and then custom development would be required to be done to the other system to integrate to these services. When data is viewed, data would be picked up from one of the ERP's database, and from the web services of the other.
Or else try to merge the companies using the same system, having a period of time with the systems running in parallel on both systems to make sure everything is running smoothly. Cross checks would need to be done to make sure data is OK.

Getting specific metrics from StarCraft 2 Replays [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm looking for a way to pull some metrics from a replay, but after doing some research I think this might be more difficult than I originally thought. From what I've found, the SC2 Replay is mostly events (and some info about the replay and players), those events by themselves don't provide the information I was hoping to pull, because the replay and the game engine are highly tied together (of course).
So, I'm wondering if anyone has a solution on how to pull metrics from a replay? I was looking for these kinds of things:
Current Army Value
Current Floating Resources
Current Building Production
...
Basically every 30seconds or something.
Any ideas?
ggtracker uses sc2reader to get something close to the current army value -- it computes the "active army" size. active army is based on player selection actions. a unit joins the "active army" the first time it is selected, and leaves the "active army" after the last time it is selected.
you may also be interested in the stats contained within the s2gs file, which are displayed in the post-game stats display. for example it contains the army size graph and income graph data. s2gs files can be parsed by sc2reader. this teamliquid thread has more details about how you can obtain s2gs files: http://www.teamliquid.net/forum/viewmessage.php?topic_id=330926. basically, you can manually cause the s2gs files to appear on your computer by clicking in the SC2 client.

Resources