DIV ARENA FORUMS

Xgraph issues

BreadCaster - 18-9-2017 at 03:00 PM

Hi everybodyyyyy.

I've been messing around a bit more with mode 8, and trying my hand at xgraphs.

I've tried the code below, which follows the example given in the help files exactly - however, when looking at the process from most angles, the graphic seems to be set to 0.

Theres a small range of angles from which the guard does display SOME of the graphics from the perspective table, but not all of them, and its only a very narrow range.

Is this a bug, or am I not using it correctly? If it's a bug I'm happy to write my own xgraph function but if I'm just being thick Id rather know :smilegrin:

Code:
Process guard(setflag); Private perspective_table[]=80,81,82,83,84,85,86; Begin ctype=c_m8; go_to_flag(setflag); xgraph=OFFSET perspective_table; Loop; Frame; End End



Thankies!!


- BC

BreadCaster - 20-9-2017 at 12:04 PM

So I guess nobody knows anything about this huh? I did look at the tutorial 7 example and it looked like it was coded in exactly the same way, so I'm going to assume this is a bug with Mode 8. Could someone confirm? Id feel pretty silly writing a working xgraph function if I dont need to haha :P

CicTec - 20-9-2017 at 01:22 PM

Hello BreadCaster,

Looking at the source code of mode8, it looks like Xgraph support is implemented, so if it's not working it's probably a bug, if you can mount a small example for mode8 using that, I could check what's actually going on.

BreadCaster - 25-10-2017 at 10:49 AM

Hi Cictec

This probably wasnt the best solution for the problem, but because itd be more work to mount an example than fix it myself - I wrote a custom xgraph function that returns a different variable (used to set the fathers graph) based on the fathers/calling processes angle instead :p

Will post it up as soon as Im back on the windows machine.

- BC

CicTec - 25-10-2017 at 11:39 AM

Hi BreadCaster,

Ok, no problem, take all the time you need. :)