General approaches to OpenKore development and debugging

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
SlipCore
Noob
Noob
Posts: 8
Joined: 07 Feb 2018, 08:11
Noob?: No

General approaches to OpenKore development and debugging

#1 Post by SlipCore »

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/bl ... #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).

SlipCore
Noob
Noob
Posts: 8
Joined: 07 Feb 2018, 08:11
Noob?: No

Re: General approaches to OpenKore development and debugging

#2 Post by SlipCore »

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

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: General approaches to OpenKore development and debugging

#3 Post by fadreus »

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.

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

SlipCore
Noob
Noob
Posts: 8
Joined: 07 Feb 2018, 08:11
Noob?: No

Re: General approaches to OpenKore development and debugging

#4 Post by SlipCore »

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.

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: General approaches to OpenKore development and debugging

#5 Post by fadreus »

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.

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

SlipCore
Noob
Noob
Posts: 8
Joined: 07 Feb 2018, 08:11
Noob?: No

Re: General approaches to OpenKore development and debugging

#6 Post by SlipCore »

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 :)

sctnightcore
Developers
Developers
Posts: 235
Joined: 09 Apr 2017, 07:23
Noob?: No
Location: Thailand

Re: General approaches to OpenKore development and debugging

#7 Post by sctnightcore »

you can post in openkore issues xD

CharlesCak
Noob
Noob
Posts: 3
Joined: 14 Aug 2020, 19:20
Noob?: Yes
Location: Colombia
Contact:

General approaches to OpenKore development and debugging

#8 Post by CharlesCak »

no, the 4.07a version had a bug, which in the 4.06 series not have. the 4.06series are the stable series.

didn found the thread where i read it, but i think this was the reason

Post Reply