Openkore.com

OpenKore Forums
It is currently 16 Aug 2018, 13:45

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: General approaches to OpenKore development and debugging
PostPosted: 07 Feb 2018, 10:27 
Offline
Noob
Noob

Joined: 07 Feb 2018, 08:11
Posts: 8
I'm interested in how developing and debugging process looks like (when introducing new features or modifying and fixing existing). In particular, workflow for plugins development.

For example:
I wrote a some code of new plugin and want to test it. I run the OpenKore, it boots and connects to game server. Then I load plugin and it crashes OpenKore due to syntax error. I realize the problem and fix it. And again "Modify plugin source -> Load entire OpenKore -> Maybe get errors -> repeat". Looks a bit complicated for continuous testing of small changes. Also many connections to the server after every fail are not very good.

I can temporary disable exception throwing in Plugin module (https://github.com/OpenKore/openkore/blob/6d4c0249d6cea9f894437f55feabbb1a2c935890/src/Plugins.pm#L155-L161), so OpenKore will not crash if there was errors in my plugin, and I can fix it and load again without restarting OpenKore. But may be there is more adequate approach? Moreover, there may still be runtime errors after plugin succesfully parsed and loaded.


Since I'm newbie in Perl development, I also would like to know, which tools OpenKore developers use nowadays? Some IDEs or just text editors with extensions (Atom, sublime, notepad++, etc).


Top
 Profile  
 
 Post subject: Re: General approaches to OpenKore development and debugging
PostPosted: 09 Feb 2018, 09:42 
Offline
Noob
Noob

Joined: 07 Feb 2018, 08:11
Posts: 8
Is developers section of forum dead and I should discuss it at IRC/Discord?
I think that some thoughts and tips about development can be useful not only for me, and it will be better if they will be stored on forum, and not lost after chatting.

just bump up the topic in active list


Top
 Profile  
 
 Post subject: Re: General approaches to OpenKore development and debugging
PostPosted: 09 Feb 2018, 09:48 
Offline
Halfway to Eternity
Halfway to Eternity
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 359
Location: Genting Highland, Malaysia
For topic discussion it remain at forum but for development it moved to github.
You can go to IRC too..

If you have some request or found some bug, fill the report template form on new issue.
If you have idea for improvement or feature to add written by you, start a pull request from your repo at github.

_________________

Wiki & Google are your best allies.
iRO server supporter.
Image


Top
 Profile  
 
 Post subject: Re: General approaches to OpenKore development and debugging
PostPosted: 09 Feb 2018, 09:55 
Offline
Noob
Noob

Joined: 07 Feb 2018, 08:11
Posts: 8
This is discussion topic, but no one dev reply here :O
I should not create an issue on github just to talk about dev tools, techniques, etc.


Top
 Profile  
 
 Post subject: Re: General approaches to OpenKore development and debugging
PostPosted: 09 Feb 2018, 10:06 
Offline
Halfway to Eternity
Halfway to Eternity
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 359
Location: Genting Highland, Malaysia
How about you can make a pull request about your improvement in openkore at git there?
And while at it, you could ask about it too since it's in regard of the improvement. ;)

Stuff at forum here are mostly about trivial things.

_________________

Wiki & Google are your best allies.
iRO server supporter.
Image


Top
 Profile  
 
 Post subject: Re: General approaches to OpenKore development and debugging
PostPosted: 09 Feb 2018, 10:22 
Offline
Noob
Noob

Joined: 07 Feb 2018, 08:11
Posts: 8
I'll try to chat on IRC/Discord first.

It's may be not a bad idea to create a small developers guide for starters with common effort.

Thx for response :)


Top
 Profile  
 
 Post subject: Re: General approaches to OpenKore development and debugging
PostPosted: 09 Feb 2018, 12:11 
Offline
Developers
Developers

Joined: 09 Apr 2017, 07:23
Posts: 213
Location: Thailand
you can post in openkore issues xD


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group