well guys i need some help from you all.
it’s been a moment i’m using minifmod…about one year.
besides, i’ve been coding a 3D engine+much stuff and effects in rder to release some demos/intros. my first demo used minifmod. i was planning to use it again for….an intro: 64kBs max of code with some effects, 3D, music, and things in it. so you understand i need to keep some bytes from everywhere. fortunately minifmod is very small.
until now i focused on the main code of the effects and last night i eventually finished the main parts. it was time to include minifmod…ok i pass the .xm through fexp and i have the cut version of the .h
then i generate the .lib…ok
then i want to include it in my code…and it doesnt link because it doesnt find the references it needs.
i have to tell you something : in order to keep as much bytes free as possible, i disabled (in VC++6) the default link libs, and rewrote things such as mallocs/printfs… stdio.h isnt even included in my code. and math.h isnt either. i have coded the main math functions in asm (with nasm). my compil options are also very strict and focused on full optimisation+small code. so i understood easily why minimod.lib, that references to many functions of the libc/crt, found nothing.
so i decided to apply my simplifications to the code of minifmod…i had to remove all the stdio/stdlib/string/math.h stuff…easy but he refuses to compile my extern “c” declarations for the math functions….it says there is a “string” (!!!) i have never seen this error, though i’m not a beginner.
so i decided to include minifmod to my code, so that everything is compiled at the same time. not only i have the same problem, but it never finds the link ref to the pow fonction (used 4 times in fmod).
well i’ve tried everything, the demo-compo is saturday and i dont know what else to do. i know this is possible to detach minifmod from all the libc stuff as there are lots of intros that use fmod.
of course i have the solution to include stdio and math.h + the libc to my code but i’m quite sure to loose between 6 and 10KBs of useable data…
if you have a custom build of minifmod that would do the thing, please help me. i can provide you with my .dsp/.dsw + defines & includes if you want.
thanks. mars/Mutant inc.
- mars asked 15 years ago
ok now the compo is ended. i spent 2 days coding some silly effects, but there was no blockbuster amongst the other competitors’ intros…and we won !!
its not widely published yet but it should be available on scene.org in the ‘VIP3’ folder within a few hours/days.
YET i didnt manage to build my file with my though compilation options, so the exe was 21kB too big…fortunately upx did a wonderful job and the packed version was only 50kB ! …but it could have been far less.
i could only compile the thing with the ‘ignore default libs’ UNchecked…that is i had to use the libc and so on, while i shouldn’t have. it seems there is an issue with the math functions…as advised in the minifmod.txt i rewrote the pow() function but it does not like it….hhhhmmmm well
i’m going to try to modify a bit the code of minifmod to get it to work in any of my build scenarios. i’ll submit the results if you dont mind…
moreover maybe there is a bug in minifmod on the FMUSIC_StopSong(…) function. i have to close monifmod and reinitialize it when i have to play 2 XMs. Indeed the music doesn’t stop when i call FMUSIC_FreeSong(…). maybe i don’t call things as i should, so i’ll check further.
anyway isnt the developper of fmod involved in the demoscene too ? during the party i helped a guy to debug an effect displaying some refraction on the waves of a pool, and i think he told me that he had had an improved build of fmod….
yeah thats right, the biggest parties are pretty lame now. i prefer going to small parties with big productions.
yet there is no real interesting party in the next few months…it also depends on where you live.
theres a schedule of all incoming parties on http://www.ojuice.net
in france the next interesting one is the JFF convention: few people, big demos.
Please login first to submit.