Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Hot Reload lua
Started by larpoux Jun 15 2019 12:55 AM

2 replies to this topic
hot reload
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

larpoux

[GLOBAL: userInfoPane.html]
larpoux
  • Enthusiast

  • 50 posts
  • Corona SDK

The hot reload feature, when the user changes his Lua application is really magic  :)

(Actually I do not have yet locate where this feature is implemented).

 

But unfortunately I do not use anymore the build processing done by the Corona Simulator (too many problems with my native plugin, and doing something obscure on a Coronalabs server is un-acceptable for an open source software). Is there any possibility to have this hot-reload feature when using XCode and the iOS simulator ?

 

[note] : more I look to the sources provided by Coronalabs, more I think that the client side sources to the Corona Server are not provided. But I hope I am wrong. The Hot-reload feature of Corona is probably the killing feature which is the reason I work on Corona. Very similar to the Flutter Hot-reload feature.

 

Coronalabs : where is the client side of Corona Server ?



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,585 posts
  • Corona SDK

I read this a while back and couldn't decide if you meant:

  1. The feature (included in the simulator) whereby  you can set the simulator to automatically restart the game/app when you change a file in the game/app folder.  This is handy when tweaking code because it saves the need to manually click the simulator and the do a reload.
  2. Live Builds - This feature is similar, but allows you to change your game/app code and have that automatically reflected on a device running the game/app.

Both are debug features only.

 

#1 Is built-in to the simulator and there is no publicly available code that I'm aware of you can get to 'DIY' sometime similar.

 

#2 I'm not sure how they did this, but again I'm not aware of any client-side code you can 'get somewhere'.  I think this is bundled and closely tied to the simulator.

 

More on live builds here if you don't know about think docs page (your probaly do, but just in case): https://docs.coronalabs.com/guide/distribution/liveBuild/index.html



[TOPIC: post.html]
#3

larpoux

[GLOBAL: userInfoPane.html]
larpoux
  • Enthusiast

  • 50 posts
  • Corona SDK

Hi Roaminggamer. thank your for your answer. I was talking about "Live Builds", I guess.

I was certain that the App was built by the Corona Server with some "client-side" routines linked with the user App, so that the Corona Simulator and the App could synchronise together and the Corona Simulator could send to the App a new Lua script to execute when changed.

 

I will look more to the Simulator Code. but the Simulator is really a big/master peace of code  ;)

Any way, thank you for your so fast answer  :)




[topic_controls]
[/topic_controls]