The following warnings occurred:
Warning [2] Undefined array key "extra" - Line: 100 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 100 errorHandler->error
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 239 pluginSystem->load
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Undefined variable $location - Line: 1250 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 1250 errorHandler->error
/inc/plugins/google_seo/url.php 174 google_seo_url_hook
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 239 pluginSystem->load
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 34 - File: global.php(956) : eval()'d code PHP 8.1.28 (Linux)
File Line Function
/global.php(956) : eval()'d code 34 errorHandler->error
/global.php 956 eval
/printthread.php 16 require_once
Warning [2] Undefined variable $messagestyle - Line: 45 - File: global.php(959) : eval()'d code PHP 8.1.28 (Linux)
File Line Function
/global.php(959) : eval()'d code 45 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined variable $boardmessage - Line: 45 - File: global.php(959) : eval()'d code PHP 8.1.28 (Linux)
File Line Function
/global.php(959) : eval()'d code 45 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5342 - File: inc/functions.php PHP 8.1.28 (Linux)
File Line Function
/inc/functions.php 5342 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$bottomlinks_returncontent - Line: 7 - File: global.php(1059) : eval()'d code PHP 8.1.28 (Linux)
File Line Function
/global.php(1059) : eval()'d code 7 errorHandler->error
/global.php 1059 eval
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 606 - File: inc/plugins/simpleckeditor.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/simpleckeditor.php 606 errorHandler->error
/inc/plugins/simpleckeditor.php 517 simpleckeditor_is_allowed
/inc/class_plugins.php 142 setCKeditor
/global.php 1253 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 606 - File: inc/plugins/simpleckeditor.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/simpleckeditor.php 606 errorHandler->error
/inc/plugins/simpleckeditor.php 233 simpleckeditor_is_allowed
/inc/plugins/simpleckeditor.php 521 simpleckeditor
/inc/class_plugins.php 142 setCKeditor
/global.php 1253 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1381 google_seo_url_cache
/inc/functions.php 6219 google_seo_url_forum
/printthread.php 213 get_forum_link
/printthread.php 67 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1381 google_seo_url_cache
/inc/functions.php 6219 google_seo_url_forum
/printthread.php 213 get_forum_link
/printthread.php 67 makeprintablenav
Warning [2] Undefined array key 125 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1381 google_seo_url_cache
/inc/functions.php 6219 google_seo_url_forum
/printthread.php 213 get_forum_link
/printthread.php 218 makeprintablenav
/printthread.php 67 makeprintablenav
Warning [2] Undefined array key 130 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1381 google_seo_url_cache
/inc/functions.php 6219 google_seo_url_forum
/printthread.php 213 get_forum_link
/printthread.php 218 makeprintablenav
/printthread.php 218 makeprintablenav
/printthread.php 67 makeprintablenav
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.28 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key 4 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1412 google_seo_url_cache
/inc/functions.php 6251 google_seo_url_thread
/printthread.php 124 get_thread_link
Warning [2] Trying to access array offset on value of type null - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1412 google_seo_url_cache
/inc/functions.php 6251 google_seo_url_thread
/printthread.php 124 get_thread_link
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1347 google_seo_url_cache
/inc/functions.php 6136 google_seo_url_profile
/inc/functions.php 6204 get_profile_link
/printthread.php 177 build_profile_link
Warning [2] Trying to access array offset on value of type null - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1347 google_seo_url_cache
/inc/functions.php 6136 google_seo_url_profile
/inc/functions.php 6204 get_profile_link
/printthread.php 177 build_profile_link
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 2 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.1.28 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1347 google_seo_url_cache
/inc/functions.php 6136 google_seo_url_profile
/inc/functions.php 6204 get_profile_link
/printthread.php 177 build_profile_link
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Silgrad Tower from the Ashes
Ferries - Printable Version

+- Silgrad Tower from the Ashes (https://www.silgradmodding.net/forum)
+-- Forum: Archived (closed boards) Silgrad TES IV & TES III & General discussions (https://www.silgradmodding.net/forum/Forum-Archived-closed-boards-Silgrad-TES-IV-TES-III-General-discussions)
+--- Forum: Discussion boards for our towns & cities TESIV (https://www.silgradmodding.net/forum/Forum-Discussion-boards-for-our-towns-cities-TESIV)
+---- Forum: Ebbedin Discussion (https://www.silgradmodding.net/forum/Forum-Ebbedin-Discussion)
+---- Thread: Ferries (/Thread-Ferries)

Pages: 1 2


- InsanitySorrow - 04-21-2008

I would happily take a look at your script and see if I can figure out a possibility, I aint to good with the math side of things but you guys can help with that.


- InsanitySorrow - 04-22-2008

oK so I came up with a script last night, this will not be the full set up to move the ship, you may need a smaller script to activate the movement based on certain actions. Anyway the position values entered are obviously not final, they are just in there to roduce some movement.

Take a look:

;===========================================
;Script: Test Script for moving an object
;Creator: InsanitySorrow
;Version: 1.0
;===========================================

;===========================================
;Script name
;===========================================

scriptname ISTestMovingScript

;========================================================
;Variables
;========================================================

Short ShipMoving
Short StartMoving
Float Timer

;===========================================
;Axis Info
;===========================================

; Z = positvie number UP, negative number DOWN
; X = positvie number EAST, negative number WEST
; Y = positvie number NORTH, Negative SOUTH

;========================================================
;Main Script
;========================================================

Begin onActivate

Set StartMoving to 1

If ( StartMoving == 1 )
If ( ShipMoving == 0 )
Set Timer to Timer + GetSecondsPassed
If ( Timer <= 15 )
setpos X 10
Else
Set Timer to 0
Set ShipMoving to -1
Endif
Endif

If ( ShipMoving == -1 )
Set Timer to Timer + GetSecondsPassed
If ( Timer <= 15 )
setpos X 10
Else
Set Timer to 0
Set ShipMoving to 0
Set StartMoving to -1
Endif
Endif
Endif

;===========================================
;End Script
;===========================================

End


- TheImperialDragon - 04-22-2008

Thanks, but I already have an ESP with the framework for the boat scripting. Smile It works to get the boat to move too. I'll post it later in the day.

I'm not sure if you knew, but "setPos X 10" will give the boat an x-coordinate of 10 in the worldspace.


- InsanitySorrow - 04-22-2008

Yes but the way its set up it should move along the axis, anyway X was just in there temp.. :yes:

Oh i did not know you had a script, would like to see it, if you need any scripting help or whatever, let me know. :goodjob:


- TheImperialDragon - 04-22-2008

This is how it is right now, no changes at all. When state is set to 0, nothing will happen because of the return. When it is 1, it will move in a stright line. State == 2 doesn't work yet because the boat is supposed to turn. I think what will happen there is the boat will accelerate along one axis while it deccelerates along the other. State == 3 resets it. I have a text file where I intend on keeping the boat coordinates at each individual state.

Code:
scn StIdRowboatEbbedinToAldNiumScript
; This is going to be a very messy script.

short state
float timer
float yvalue        ; y axis
float xvalue        ; x axis
float rvalue        ; rotation

Begin OnActivate
if ( state == 0 )
    set state to 1
    set timer to 4
endif
End

Begin GameMode
if ( state == 0 )
    return
elseif ( state == 1 )
    set yvalue to ( 234995.8173 + ( -136.6965 * timer ) )
    setpos y yvalue
    set xvalue to ( 209876.4840 + ( 53.144625 * timer ) )
    setpos x xvalue
    set timer to ( timer - GetSecondsPassed )
    if ( timer <= 0 )
        set state to 2
        set timer to 8
    endif
elseif ( state == 2 )
    set yvalue to ( 235330.0248 - ( 6.8205612244898 * ( ( timer - 1 ) * ( timer - 1 ) ) ) )
    setpos y yvalue
    set xvalue to ( 209876.4840 + ( -759.3645 / ( timer * timer ) ) )
    setpos x xvalue
    set timer to ( timer - GetSecondsPassed )
    if ( timer <= 1 )
        set state to 3
        set timer to 0
    endif
elseif ( state == 3 )
    setpos y 234449.0313
    setpos x 210089.0625
    set state to 0
endif
End

Writing this post gave me a strange idea. Instead of doing it all in one big circle, why don't find the slope of the boat (y/x) and then use a bit of calculus (I knew that would be useful!) to find out where on the circle it enters! Then it travels from there until the top, then continues on another state value. Same calculus as for when it exits! Big Grin I think. I would need to work a bit on paper before I knew for sure if this would help and what would be needed.


- InsanitySorrow - 04-23-2008

What you have looks good, but with me living in the UK I have no knowledge of calculus, so I cannot help on that part.


- TheImperialDragon - 04-23-2008

I'm not 100% sure if calculus would be needed, and it might only be for a small section. I'd need to find time to sit down with pencil and paper before it'd really make a lot of sense.

EDIT: Obviously the script will have more state values for different parts of the journey. What you see is just the beginning.


- InsanitySorrow - 04-23-2008

Well it looks as if it will work, everything so far seems to be there, Have you tried the script?


- TheImperialDragon - 04-23-2008

Yes, the boat moves but the player didn't. I should probably have mentioned that the boat collision moved along with the boat model SACarrow sent me.

The problems outlined in the OP are the only ones I'm aware of that need to be addressed.