Closed kristinethellama closed 1 year ago
we did not to much debugging, mostly adding the button as a control to see if it is the engine and controls causing the issue rather than the devices itself (gabe suspects this might be the issue -- engine + controls)
We also tried to load the data both as a .csv file and as a string, but both crashed nonetheless
Here is the only log I found because apparently, iOS does not make crash logs if it's on launch. Not sure if it helps
This is now fixed on IOS. Turns out to have been a problem with fonts.
For both iOS and Android, running charts does not work. For iOS, the app launches but crashes immediately. For android, there is a compiler error. (see attached) : This was the code we were both running: `use Libraries.Compute.Statistics.DataFrame use Libraries.Interface.Controls.Charts.BarChart
// create dataframe to read in data DataFrame frame text value = "Category,City,Country,Item,Cost Date night,Barcelona,Spain,Dinner,69.38 Date night,New York,US,Drinks at Dinner,21.28" frame:LoadFromCommaSeparatedValue(value)
// pull out selected data, for this we will be catagorizing by country and cost frame:AddSelectedFactors("Country") frame:AddSelectedColumns("Cost")
// using the data frame, format data by creating a bar chart component BarChart chart = frame:BarChart()
// display chart chart:Display()`
More issues on iOS:
class Main is Game, CollisionListener2D Drawable ground Drawable box Color color
action Main StartGame() end
action CreateGame / This flag enables 2 dimensional physics for the game. Make sure to set this when you want to add physics. / EnablePhysics2D(true)
/ We must enable physics for each Item2D object that will interact with other Item2D objects. / ground:EnablePhysics(true) / Neither gravity, collision, nor any programmatic method should be able to move the ground; its responsiveness needs to be set to unmovable. / ground:SetUnmovable()
/ The box is responds to gravity and impact with the ground, so we will set to be responsive. / box:SetResponsive() / Finally, we set gravity (This is an approximation of actual gravity) / SetGravity2D(0, -100)
button:ScaleFromCenter(5) Add(button) end
action BeginCollision(CollisionEvent2D event) output "Boom" end end`