Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?

[DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?

[DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
01-05-2024, 02:19 PM
#11
Archived author: functorism • Posted: 2024-01-05T14:19:41.836000+00:00
Original source

Yeah, sounds very reasonable. Unfortunatly it's in python2.
rektbyfaith
01-05-2024, 02:19 PM #11

Archived author: functorism • Posted: 2024-01-05T14:19:41.836000+00:00
Original source

Yeah, sounds very reasonable. Unfortunatly it's in python2.

rektbyfaith
Administrator
0
01-05-2024, 02:29 PM
#12
Archived author: functorism • Posted: 2024-01-05T14:29:09.806000+00:00
Original source

Was easy to port to python3 though
rektbyfaith
01-05-2024, 02:29 PM #12

Archived author: functorism • Posted: 2024-01-05T14:29:09.806000+00:00
Original source

Was easy to port to python3 though

rektbyfaith
Administrator
0
01-05-2024, 03:53 PM
#13
Archived author: functorism • Posted: 2024-01-05T15:53:37.719000+00:00
Original source

I ported the doc gen to python 3 and wrote a quick stub generator, and it mostly works fine. But a lot of important information lives in human written descriptions. And there isn't really any declarative information regarding the overloaded behavior of some functions, like RegisterEvent that can take for example both delay and delaytable.
rektbyfaith
01-05-2024, 03:53 PM #13

Archived author: functorism • Posted: 2024-01-05T15:53:37.719000+00:00
Original source

I ported the doc gen to python 3 and wrote a quick stub generator, and it mostly works fine. But a lot of important information lives in human written descriptions. And there isn't really any declarative information regarding the overloaded behavior of some functions, like RegisterEvent that can take for example both delay and delaytable.

rektbyfaith
Administrator
0
01-05-2024, 03:54 PM
#14
Archived author: functorism • Posted: 2024-01-05T15:54:27.286000+00:00
Original source

I also had to parse out the inheritance from a description string, maybe that is more structured higher up in the change, but I tried working with the existing doc objects.
rektbyfaith
01-05-2024, 03:54 PM #14

Archived author: functorism • Posted: 2024-01-05T15:54:27.286000+00:00
Original source

I also had to parse out the inheritance from a description string, maybe that is more structured higher up in the change, but I tried working with the existing doc objects.

rektbyfaith
Administrator
0
01-05-2024, 04:09 PM
#15
Archived author: functorism • Posted: 2024-01-05T16:09:03.143000+00:00
Original source

https://gist.github.com/functorism/1646c...181e7c4c7f
[Embed: Lua stubs Eluna]
Lua stubs Eluna. GitHub Gist: instantly share code, notes, and snippets.
https://gist.github.com/functorism/1646c...181e7c4c7f
rektbyfaith
01-05-2024, 04:09 PM #15

Archived author: functorism • Posted: 2024-01-05T16:09:03.143000+00:00
Original source

https://gist.github.com/functorism/1646c...181e7c4c7f
[Embed: Lua stubs Eluna]
Lua stubs Eluna. GitHub Gist: instantly share code, notes, and snippets.
https://gist.github.com/functorism/1646c...181e7c4c7f

rektbyfaith
Administrator
0
01-05-2024, 04:18 PM
#16
Archived author: functorism • Posted: 2024-01-05T16:18:09.824000+00:00
Original source

https://www.azerothcore.org/pages/eluna/...Event.html

The protos must be used to produce a correct stub (not even sure yet if lua language server annotations support overloading), they're parsed from the docstring, and exposed in the current method doc as just strings, so that would have to be hoisted.
[Embed: WorldObject:RegisterEvent - Eluna]
API documentation for the WorldObject:RegisterEvent method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...Event.html
rektbyfaith
01-05-2024, 04:18 PM #16

Archived author: functorism • Posted: 2024-01-05T16:18:09.824000+00:00
Original source

https://www.azerothcore.org/pages/eluna/...Event.html

The protos must be used to produce a correct stub (not even sure yet if lua language server annotations support overloading), they're parsed from the docstring, and exposed in the current method doc as just strings, so that would have to be hoisted.
[Embed: WorldObject:RegisterEvent - Eluna]
API documentation for the WorldObject:RegisterEvent method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...Event.html

rektbyfaith
Administrator
0
01-05-2024, 05:10 PM
#17
Archived author: functorism • Posted: 2024-01-05T17:10:05.139000+00:00
Original source

Unfortunately the protos are written incorrectly in many places and there's not a strict way in which they can be mapped to the documented arguments. https://www.azerothcore.org/pages/eluna/...vents.html
[Embed: Global:ClearUniqueCreatureEvents - Eluna]
API documentation for the Global:ClearUniqueCreatureEvents method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...vents.html
rektbyfaith
01-05-2024, 05:10 PM #17

Archived author: functorism • Posted: 2024-01-05T17:10:05.139000+00:00
Original source

Unfortunately the protos are written incorrectly in many places and there's not a strict way in which they can be mapped to the documented arguments. https://www.azerothcore.org/pages/eluna/...vents.html
[Embed: Global:ClearUniqueCreatureEvents - Eluna]
API documentation for the Global:ClearUniqueCreatureEvents method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...vents.html

rektbyfaith
Administrator
0
01-05-2024, 05:17 PM
#18
Archived author: functorism • Posted: 2024-01-05T17:17:22.094000+00:00
Original source

```
Proto references entry in Global ClearUniqueCreatureEvents but it doesn't exist in ['guid', 'instance_id', 'event_type']
Proto references entry in Global ClearUniqueCreatureEvents but it doesn't exist in ['guid', 'instance_id', 'event_type']
Proto references instance_id in Global ClearInstanceEvents but it doesn't exist in ['entry', 'event_type']
Proto references instance_id in Global ClearInstanceEvents but it doesn't exist in ['entry', 'event_type']
Proto references obj in WorldObject GetAngle but it doesn't exist in ['object', 'x', 'y']
```

Not that many places, should just be fixed.
rektbyfaith
01-05-2024, 05:17 PM #18

Archived author: functorism • Posted: 2024-01-05T17:17:22.094000+00:00
Original source

```
Proto references entry in Global ClearUniqueCreatureEvents but it doesn't exist in ['guid', 'instance_id', 'event_type']
Proto references entry in Global ClearUniqueCreatureEvents but it doesn't exist in ['guid', 'instance_id', 'event_type']
Proto references instance_id in Global ClearInstanceEvents but it doesn't exist in ['entry', 'event_type']
Proto references instance_id in Global ClearInstanceEvents but it doesn't exist in ['entry', 'event_type']
Proto references obj in WorldObject GetAngle but it doesn't exist in ['object', 'x', 'y']
```

Not that many places, should just be fixed.

rektbyfaith
Administrator
0
01-05-2024, 05:48 PM
#19
Archived author: functorism • Posted: 2024-01-05T17:48:48.946000+00:00
Original source

This gist is now updated with stubs that based on what I can see works correctly with the overloading except for the places where the @proto string in the header file comment is wrong.
rektbyfaith
01-05-2024, 05:48 PM #19

Archived author: functorism • Posted: 2024-01-05T17:48:48.946000+00:00
Original source

This gist is now updated with stubs that based on what I can see works correctly with the overloading except for the places where the @proto string in the header file comment is wrong.

rektbyfaith
Administrator
0
01-05-2024, 05:52 PM
#20
Archived author: Honey • Posted: 2024-01-05T17:52:38.476000+00:00
Original source

You seem to be very dedicated and I appreciate you working on the documentation. But i seem to completely miss the purpose of writing the docs in a different way than what already exists from the original Eluna repo.
rektbyfaith
01-05-2024, 05:52 PM #20

Archived author: Honey • Posted: 2024-01-05T17:52:38.476000+00:00
Original source

You seem to be very dedicated and I appreciate you working on the documentation. But i seem to completely miss the purpose of writing the docs in a different way than what already exists from the original Eluna repo.

Pages (2): Previous 1 2
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)