Hey everyone! I've been beating my head against the proverbial wall for a few days regarding this, and have reached out to Quasi, but I figure in the meantime why not see if I can get help anywhere else.
Quasi has a very nifty sight script: http://pastebin.com/iEXJg6x6
In order to use it, it requires his movement and core sciripts: Movement & Core
Alright. Needing a line-of-sight script, I came across Quasi's, and I really enjoy it. Implemented it into my current project, and it works wonders. Allowed me to remove a ton of unnecessary variables, switches, and events from my stealth maps, and I also like it because it's extremely easy to use.
The issue came after I sat down and tried to do a runthrough of my demo to ensure the script didn't change anything that it didn't need to, and that's where my problems begin.
I'm seeing two separate ways of going forward, and as long as it gets solved, either way works.
The first issue is when I use the scripts as-is, with these config settings:
GRID = 1SMARTMOVE = :bothMIDPASS = falseDIR8 = trueDIAGSPEED = 0PLAYERBOX = [24, 16, 4 , 16] EVENTBOX = [24, 16, 4 ,16] VEHICLES = { :boat => [22, 22, 5, 9], :ship => [22, 22, 5, 9], :airship => [22, 22, 5, 9] }EVENTFREQ = 32The issues I'm having are with event movements. Whenever I have an event do a move route, they end up moving pixel by pixel. For example, in one map I have a character enter from the bottom, move up a bit to bypass a wall, move right, then up again. With the script on, he walks in, goes up a few pixels, slams into the wall, then stops, almost as if he's only moving one pixel for each move command. As far as I can tell, the EVENTFREQ parameter is meant to alleviate that, and at 32, events treat each movement command as being sent 32 times, and therefore move 32 pixels. For whatever reason, my events do not do that. If I can figure out how to get events to move properly, the pixel movement is quite nice and tight.
Now, I actually at first had never intended to use the pixel movement, and set the parameters to be as close to VXA vanilla as possible. The sole reason for the inclusion of the movement script was to gain the ability to use the sight script. Here are the settings I use when aiming for vanilla:
GRID = 32SMARTMOVE = falseMIDPASS = trueDIR8 = falseDIAGSPEED = 0PLAYERBOX = [32, 32]EVENTBOX = [32, 32]EVENTFREQ = 32When using these settings, events move just fine. I then encounter a host of different issues. In the demo I've attached, you'll see these issues crop up on the map I tested on in my original project, the sample map AbandonedMineBF1. With vanilla settings, if you try to walk around, you end up getting caught on the bounding boxes, and half of the tiles are unwalkable for no reason. The worst part is, if you walk up onto a raised platform, you can then walk straight off the top of it, no collision at all.
If anyone can assist me on getting this to work, either vanilla OR pixel movement style, I would be incredibly grateful
The issue occurs even in this blank project, and with all the scripts at the bottom of my script list in my old project.
If there's anything else I left out, or any further clarification I can provide, please let me know. I'd really rather not have to shelve this sight script due to the movement script being so difficult.
-spiritseekerpsp
Data.zip
Quasi has a very nifty sight script: http://pastebin.com/iEXJg6x6
In order to use it, it requires his movement and core sciripts: Movement & Core
Alright. Needing a line-of-sight script, I came across Quasi's, and I really enjoy it. Implemented it into my current project, and it works wonders. Allowed me to remove a ton of unnecessary variables, switches, and events from my stealth maps, and I also like it because it's extremely easy to use.
The issue came after I sat down and tried to do a runthrough of my demo to ensure the script didn't change anything that it didn't need to, and that's where my problems begin.
I'm seeing two separate ways of going forward, and as long as it gets solved, either way works.
The first issue is when I use the scripts as-is, with these config settings:
GRID = 1SMARTMOVE = :bothMIDPASS = falseDIR8 = trueDIAGSPEED = 0PLAYERBOX = [24, 16, 4 , 16] EVENTBOX = [24, 16, 4 ,16] VEHICLES = { :boat => [22, 22, 5, 9], :ship => [22, 22, 5, 9], :airship => [22, 22, 5, 9] }EVENTFREQ = 32The issues I'm having are with event movements. Whenever I have an event do a move route, they end up moving pixel by pixel. For example, in one map I have a character enter from the bottom, move up a bit to bypass a wall, move right, then up again. With the script on, he walks in, goes up a few pixels, slams into the wall, then stops, almost as if he's only moving one pixel for each move command. As far as I can tell, the EVENTFREQ parameter is meant to alleviate that, and at 32, events treat each movement command as being sent 32 times, and therefore move 32 pixels. For whatever reason, my events do not do that. If I can figure out how to get events to move properly, the pixel movement is quite nice and tight.
Now, I actually at first had never intended to use the pixel movement, and set the parameters to be as close to VXA vanilla as possible. The sole reason for the inclusion of the movement script was to gain the ability to use the sight script. Here are the settings I use when aiming for vanilla:
GRID = 32SMARTMOVE = falseMIDPASS = trueDIR8 = falseDIAGSPEED = 0PLAYERBOX = [32, 32]EVENTBOX = [32, 32]EVENTFREQ = 32When using these settings, events move just fine. I then encounter a host of different issues. In the demo I've attached, you'll see these issues crop up on the map I tested on in my original project, the sample map AbandonedMineBF1. With vanilla settings, if you try to walk around, you end up getting caught on the bounding boxes, and half of the tiles are unwalkable for no reason. The worst part is, if you walk up onto a raised platform, you can then walk straight off the top of it, no collision at all.
If anyone can assist me on getting this to work, either vanilla OR pixel movement style, I would be incredibly grateful
The issue occurs even in this blank project, and with all the scripts at the bottom of my script list in my old project.
If there's anything else I left out, or any further clarification I can provide, please let me know. I'd really rather not have to shelve this sight script due to the movement script being so difficult.
-spiritseekerpsp
Data.zip