[BETA] Oblivion Script Extender (OBSE) 0020

Post » Tue May 03, 2011 8:16 am

what? But I did try that.


From my previous post #172:

I hold a bow in my hands, tried with just a sword as well. in all case I get -1
Why would I get -1 for the GetBoundingRadius:

 set Weapon to Player.GetEquippedObject 16  if (weapon)  set Weapon to Player.GetEquippedObject 16   set weapon to aadpCellaadphidcellwc.placeatme weapon      if isformvalid weapon == 1         set WeaponSize to weapon.GetBoundingRadius         messagebox"radius is %.2f"weaponsize      endif endif


-------------- end of cut and past of post 172--------------


So why is it working for you and not working fo me? Why am I getting -1 for all the weapons I try this on?

Is this becasue I am not wating "the next frame"? So I need to place my object then wait a frame THEN use weapon.GetBoundingRadius ?



One way around is to get the base object FormID of the weapon or shield and PlaceAtMe a new object in the game world, get its dimensions with GetBoundingBox and, then, remove it with DeleteReference.

Problem is that, for PlaceAtMe'd references, GetBoundingBox will only return the real dimension the next frame.


User avatar
Lyndsey Bird
 
Posts: 3539
Joined: Sun Oct 22, 2006 2:57 am

Post » Tue May 03, 2011 3:39 am

I'm having problems getting OBSE (19 or 20) to load with my Steam version. I copied the 3 .dll files into my oblivion and usually run the game via Wyre Bash (which, incidentally, does not show the green check box for OBSE) but no command screen appears and it doesnt load. I did try the Steam version of the obse_loader.exe and although it ran obse I lost my main menu (for reasons beyond me)

I am not new to OBSE and have had it running on other installs, although this is my first Steam install.

Any and all help is appreciated.

I don't use the Steam-Version, but the readme says this:
IF YOU ARE USING THE STEAM VERSION OF OBLIVION:

1. Copy obse_1_2_416.dll, obse_editor_1_2.dll, and obse_steam_loader.dll to your Oblivion directory. This is usually "C:\Program Files\Valve\Steam\SteamApps\common\oblivion".
2. Launch Oblivion via Steam or by running Oblivion.exe. OBSE will automatically be run along with Oblivion when launched. To disable this, rename or move obse_steam_loader.dll. You do not need to use obse_loader.exe unless you are running the editor.
[...]
I'm using the Steam version of Oblivion and OBSE doesn't seem to be working:

- Go to your Steam Settings page, pick the "In-game" tab, and make sure the "Enable Steam Community In-Game" box is checked.




Other Question/Request: A while ago someone asked if it's possible to create/specify default values for parameters of a User Function (so they can be omitted while calling the UF). Any update on this?
User avatar
maya papps
 
Posts: 3468
Joined: Mon Aug 07, 2006 3:44 pm

Post » Tue May 03, 2011 6:56 am

I have followed the readme word for word and am still having no luck. I have a terrible feeling yet another clean install is the only solution.
User avatar
Ella Loapaga
 
Posts: 3376
Joined: Fri Mar 09, 2007 2:45 pm

Post » Tue May 03, 2011 3:02 am

Is this becasue I am not wating "the next frame"? So I need to place my object then wait a frame THEN use weapon.GetBoundingRadius ?

Most likely. PlaceAtMe tells the game to create a new reference but the game doesn't do that immediately. The reference is created in a separate thread so you can't be certain *when* the game will finish creating it, but generally waiting one frame is enough.
I'm having problems getting OBSE (19 or 20) to load with my Steam version. I copied the 3 .dll files into my oblivion and usually run the game via Wyre Bash (which, incidentally, does not show the green check box for OBSE) but no command screen appears and it doesnt load. I did try the Steam version of the obse_loader.exe and although it ran obse I lost my main menu (for reasons beyond me)

I am not new to OBSE and have had it running on other installs, although this is my first Steam install.

Any and all help is appreciated.

Hi. Go to Steam > Settings > In-Game and make sure the "Enable Steam Community In-Game" box is checked, then try again (running the Oblivion launcher, not obse_loader.exe).

If that doesn't fix it, check for any obse-related .log files in your Oblivion folder and check the times on them - if the files are not present or the times are all older than the most recent time you tried to run the game, we're not getting loaded; otherwise, please post them (or PM me with them).
Other Question/Request: A while ago someone asked if it's possible to create/specify default values for parameters of a User Function (so they can be omitted while calling the UF). Any update on this?

It's been discussed and it's doable, but not supported in the current release. The best option right now is probably to have the function accept an array or stringmap containing the arguments.

EDIT: Also, http://www.gamesas.com/index.php?/topic/1173487-beta-oblivion-script-extender-obse-0020/.
User avatar
Anthony Santillan
 
Posts: 3461
Joined: Sun Jul 01, 2007 6:42 am

Post » Tue May 03, 2011 1:51 am

Post limit reached.
User avatar
Mel E
 
Posts: 3354
Joined: Mon Apr 09, 2007 11:23 pm

Previous

Return to IV - Oblivion