Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Having an error at line 118 with the entity maker

Author
Message
starmind 001
FPSC Reloaded Backer
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 23rd Nov 2012 18:22 Edited at: 23rd Nov 2012 18:33
I was try to make the old entity maker more user friendly and have it only use one folder and use window mode instead of fullscreen. I also wanted to change the materials setting that has seemed to have been changed in fpsc and not with this.

I have change the folder to just "entitybank" and have yet to change anything else, when I come across an error. This error says cannot find path at line 118. Everything works great except for the snapshot. It even creates the fpe for the entity, but crashes on snapshot.

Can anyone explain this error for me and how to fix it? I made line 118 in bold just for reference. Also I had the window(640x480) and fullscreen both crash upon snapshot. Did a compile with debug and it is showing the path is "entitybank" but still crashes. Thanks for your time.



MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 23rd Nov 2012 23:46 Edited at: 23rd Nov 2012 23:47
".\entitybank"

EDIT

Line 13

starmind 001
FPSC Reloaded Backer
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 24th Nov 2012 02:49
That didn't work, but if I don't change the files except for window version it works just fine even with changing other parts of the code with the new material settings. Thanks though.

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 24th Nov 2012 02:52
What kind of error do you get? Does it crash without response? Does it throw an error at line x? What is the error message?

TheComet

nonZero
12
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 24th Nov 2012 16:18
@TheComet:
Quote: "Does it throw an error at line x?"


I think he means this:
Quote: "118 get image 1,640-120,0,640,120"


@starmind:
The actual error message would help though... Doesn't seem out of bounds with the get (560,0,640,120) if it's pointed to the screen.

Possible errors:

> You've used this image number (1) before, ie: Image number is in use
> You're trying to grab an image off a canvas (bitmap) that is too small (less than 640x120),
> You've locked the pixels and not unlocked them.

I can't go through all that code atm so those are just some guesses. Give it a try.

RP Functions Library v1.0

My signature has not been erased by a mod.
starmind 001
FPSC Reloaded Backer
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 2nd Jan 2013 05:02
Ok guys, I fixed this. Thanks for your help on this. Attached is the windowed version. Enjoy!

Btw it was a simple thing that mr valentine pointed out at the beginning, but there was more that had to be changed further down. It was so simple I just kept overlooking it and had to step back for awhile to get fresh eyes on it.

Attachments

Login to view attachments
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 2nd Jan 2013 05:10
starmind 001 -

starmind 001
FPSC Reloaded Backer
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 2nd Jan 2013 05:14
Coffee always works, but sometimes I get to much and don't have the patience to sit and solve problems.

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 2nd Jan 2013 05:28
Haha I meant... Have a coffee on me

Glad it was solved

starmind 001
FPSC Reloaded Backer
16
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 3rd Jan 2013 17:36
After talking with Lee, he asked that I include all files with this updated version. So included is the tutorials, a README, the program, icon texture and both DarkBasic codes. Enjoy!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-03-29 02:26:55
Your offset time is: 2024-03-29 02:26:55