![]() |
Question - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Question (/showthread.php?tid=387) |
Question - halla - 26-10-2006 Ok im working on some programs to help new people customize Mirage Source. One is a Offline Map Editor. Im adding stuff as I go and its giving me this error. User Defined Type not Defined Code: Public DX As New DirectX7 I have the modDirectX and all I dont see why that part is getting an error. Thanks - Misunderstood - 26-10-2006 You need to add a reference to DirectX with the VB IDE like MS does, I don't remember how though, but its either a reference or component, so look for those words. - halla - 26-10-2006 Oh yeah that wold make a lot of sense. Thanks EDIT: FOund it If anyone cares... its a reference. To get it you must click open and it should already be in the win32 folder if not go there. Then find dx7vb or something like that. THats waht you need then. - halla - 26-10-2006 Dave Wrote:Project - references Yep thanks. I found it right before you posted though. So far I have it showing the image for the tiles but cant select any. I have to find out what im missing for that. - halla - 27-10-2006 Ok Another Question. Thought this would be better rather than a new topic. Ok I got more progress on it... what code though blts the tiles to picScreen while you are editing maps. I have it where you select a tile and all but after that if you click on picSCreen you get error saying "Run Time Error Object Required" Also I couldnt find the code relating to that I was looking at blttile and stuff but is that just to show the maps while playing or for tiles actually... I added that but dont know if I need too. Thanks - Misunderstood - 27-10-2006 blttile and such, just like normal. It uses savemap to revert back to how it was previously if you choose cancel. - halla - 27-10-2006 Ok now the error... in bltTile (unchanged) it highlights Code: Call DD_BackBuffer.BltFast(x * PIC_X, y * PIC_Y, DD_TileSurf, rec, DDBLTFAST_WAIT) Run Time Error 91 Object Variable or With Block variable not set - Misunderstood - 27-10-2006 can you post more than just that one line? This is called after the DX is initialized...right? |