User Tag List

Results 1 to 2 of 2

Thread: FFC can straddle screen on South and East edge but not North and West

  1. #1
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    32
    Level
    2
    vBActivity - Bars
    Lv. Percent
    20.67%

    FFC can straddle screen on South and East edge but not North and West

    Steps to recreate:

    1. Right click the canvas
    2. Click Edit New FFC1 in the context menu
    3. Set Tile width and height both to 255 in the FFC Editor
    4. Click OK
    5. Try to drag FFC partially off the canvas

  2. #2
    Gel Just registered SkyLizardGirl's Avatar
    Join Date
    Feb 2019
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    218
    Level
    5
    vBActivity - Bars
    Lv. Percent
    45.37%
    It makes quest making really difficult, because you cannot post a FFC halfway through the Top or Left of the combo tile
    screen.
    It only lets you place FFCs from the right and bottom.

    This is a really annoying issue that really should be done away with and fixed.

    You always have to waste combo making space in a quest, just to work around
    this really bad issue.

    It would save the developers 'tons of time' and 'free up confusion' and even combo making space used up in any quests.
    Last edited by SkyLizardGirl; 04-15-2024 at 02:51 AM.

  3. #3
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    32
    Level
    2
    vBActivity - Bars
    Lv. Percent
    20.67%
    The FFC dragging is handled by the moveffc function in zquest.cpp

  4. #4
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    32
    Level
    2
    vBActivity - Bars
    Lv. Percent
    20.67%
    The body of this if runs when an FFC that was being dragged is dropped:

    Code:
    	if((ffx != offx) || (ffy != offy))
    	{
    		auto set_ffc_data = set_ffc_command::create_data(Map.CurrScr()->ffcs[i]);
    		set_ffc_data.x = ffx;
    		set_ffc_data.y = ffy;
    		Map.DoSetFFCCommand(Map.getCurrMap(), Map.getCurrScr(), i, set_ffc_data);
    		saved = false;
    	}
    Subtracting constants from ffx and ffy in the set_ffc_data.{x,y} assigments does result in FFCs straddling the north and west screen edges.

  5. #5
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    32
    Level
    2
    vBActivity - Bars
    Lv. Percent
    20.67%
    doxypos appears to be the culprit. It takes one byte (which is typedef'd to uint8_t) for each mouse coordinate.

  6. #6
    Octorok Asuna Yuuki Nagato's Avatar
    Join Date
    Jan 2024
    Posts
    486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    32
    Level
    2
    vBActivity - Bars
    Lv. Percent
    20.67%
    As a workaround, type a negative number in the X Pos/Y Pos fields of the Data tab of the FFC Editor.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social