View previous topic :: View next topic |
Author |
Message |
Ilerien
Joined: 31 Jan 2010 Posts: 3 Location: Russia
|
|
Back to top |
|
|
Paul R
Joined: 17 Apr 2009 Posts: 42
|
Posted: Sun Jan 31, 2010 23:34 Post subject: |
|
|
Looks good, I know there have been various implementations of random number functions, even using MySQL.
Just curious why you did it as a branch rather than as a patch to the trunk? Reason I'm asking is that there have been some useful additions such as this and the per player visual effects and timer bar but have been done as separate bits of code rather than extend the main branch.
Which kind of makes it difficult to implement without rewriting that extension again if they happened to be the same one. _________________ oops |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Mon Feb 01, 2010 2:33 Post subject: |
|
|
Properly made branches can be compiled as a replacement for the original plugin.
They can also be easily merged into the trunk.
axs published his work as a separate plugin outside of the repository; this is not the case with this extension. _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
kucik
Joined: 11 Feb 2009 Posts: 19 Location: Czech Republic
|
Posted: Mon Feb 01, 2010 17:55 Post subject: |
|
|
Nice job.
Have you any idea how to replace built-in engine throws like attack rolls? Is to possible to locate this finctions in binary and replace them? _________________ Les jambes en l'air, comme une femme lubrique,
Brûlante et suant les poisons,
Ouvrait d'une façon nonchalante et cynique
Son ventre plein d'exhalaisons. |
|
Back to top |
|
|
Ilerien
Joined: 31 Jan 2010 Posts: 3 Location: Russia
|
Posted: Wed Feb 03, 2010 12:32 Post subject: |
|
|
Quote: | Have you any idea how to replace built-in engine throws like attack rolls? Is to possible to locate this finctions in binary and replace them? | I'll try to hook built-in engine rolls (I think, those are calls of rand() function w/ seed generating when player is entering an area). Several hours with debugger... _________________ Simple NWNX_System extension
Gem of the North |
|
Back to top |
|
|
MaxRock
Joined: 24 Jan 2008 Posts: 196
|
Posted: Mon Apr 26, 2010 2:17 Post subject: |
|
|
Ilerien wrote: | I'll try to hook built-in engine rolls (I think, those are calls of rand() function w/ seed generating when player is entering an area). Several hours with debugger... |
Have you had any luck with that?
I've found the RollDice function which d100(), d20(), etc go through, but random(...) doesn't seem to call this. |
|
Back to top |
|
|
|