Code Monkey home page Code Monkey logo

Comments (10)

stevedonovan avatar stevedonovan commented on May 29, 2024

Interesting! I cloned your project, and found the script that made the config.ld. And (of course) the thing is working OK, because these two functions are considered to be functions in the Blitzwizard module!

I would have preferred it to misbehave ;) There are some 'not found' references which I'll look at.. I do remember that the master module thing is sensitive to ordering of the file list.

...
found master module     d:\kool\blitwizard\src\luafuncs.c
found master module     d:\kool\blitwizard\src\luafuncs.c
usage:14: function or section not found: blitwizard.graphics.getDefaultCamera in blitwizard.graphics blitwizard.graphics.getDefaultCamera
usage:14: function or section not found: blitwizard.graphics.camera:gameUnitsPerPixel in blitwizard.graphics blitwizard.graphics.camera:gameUnitsPerPixel
d:\kool\blitwizard\src\luafuncs_objectphysics.c:508: object:enableMovableCollision: function not found: object:shape_info in this module object:shape_info
d:\kool\blitwizard\src\luafuncs_objectphysics.c:519: object:enableStaticCollision: function not found: object:shape_info in this module object:shape_info
d:\kool\blitwizard\src\luafuncs_media_object.c:438: positionedSound:new: function not found: position in this module position
output written to d:\kool\blitwizard\docs

from ldoc.

 avatar commented on May 29, 2024

So it works for you? I can see if there is any update to pull, but I believe to be on the latest master...

The missing two references in objectphysics don't appear here (and shouldn't!). The other missing references are "intentional", I haven't implemented and described those yet.

from ldoc.

stevedonovan avatar stevedonovan commented on May 29, 2024

I suspect it has to do with ordering. The file which is intended to be the 'master module' should be seen first. Perhaps on Windows your script gave me another ordering? I'll try that tomorrow.

from ldoc.

 avatar commented on May 29, 2024

Sorry for that script btw :) it takes the files out of src/Makefile.am since I didn't want to write the list of all source files twice into a text file and update it in both places.

So the file list not magically generated or anything, just copied from src/Makefile.am since I'm lazy! (in fact, the script SHOULD also always end up with the same order. Not that I would have paid attention to that when writing it..)

from ldoc.

 avatar commented on May 29, 2024

Just as a small update, the issue is still present with the most recent ldoc version (pulled a few moments ago).

"loadResourceArchive" is planted onto the "object" class type, while it is just in the "blitwizard" module (see luafuncs.c and verify for yourself). Same for "setStep" in the same file.

from ldoc.

 avatar commented on May 29, 2024

Use this zip to reproduce the bug: http://www.blitwizard.de/temp/reproduce.zip

Check if "loadResourceArchives" is planted onto the "object" class type in the "blitwizard" module (it shouldn't be, instead it should be a separate function in the "blitwizard" module, and not part of any class type).

If I can help with anything else, let me know.

from ldoc.

stevedonovan avatar stevedonovan commented on May 29, 2024

Yep, I can confirm that it does indeed plant it in the wrong place. This is cool, since what can reproduce is what I can fix ....

from ldoc.

stevedonovan avatar stevedonovan commented on May 29, 2024

OK, here's the quick fix, while I think of the best way to fix this properly; swop luafuncs.c and luafuncs_object.c around in config.ld. It's using luafuncs_object as the master module and merging stuff into the type object section.

The proper fix involves not re-using the section, let's see...

from ldoc.

stevedonovan avatar stevedonovan commented on May 29, 2024

Try out latest commit, see if your docs look exactly like you need them ;)

from ldoc.

 avatar commented on May 29, 2024

Works perfectly now, thanks a lot :) :)

from ldoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.