Exult Logo
 
Home | Download | Documentation | FAQ | Studio | Screen Shots
Development | Discussion | About Us | Letters | History | Links
 
Exult Discussion
Before posting, make sure you've read the FAQ and searched the message board for previous discussions. When reporting problems/bugs, please include details about your setup (Exult version, OS, sound and video cards).

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 UI_create_barge_object intrinsic
Author: agentorangeguy 
Date:   03-15-17 16:23

I've noticed the UI_create_barge_object intrinsic doesn't work. I tried to use it but it wasn't declared. I looked up the actual number in the exult source code and it said 0xd5 so it should be there and useable like the others, but I couldn't get it to work. Is there a reason it isn't working?

-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   03-15-17 17:12

It compiled okay for me:
Quote:

var avatar_position = UI_get_object_position(AVATAR);
UI_create_barge_object(8, 8, NORTH);
UI_update_last_created([avatar_position]);


I'm not able to manipulate it the same way I can with one created manually in ES. Double-clicking on the code-created one does not do anything.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: agentorangeguy 
Date:   03-15-17 19:28

When I use "UI_create_barge_object" it tells me 'UI_create_barge_object' not declared. I'm using BG though. hmm..

-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   03-25-17 18:30

Did you check using the latest UCC.exe?

And did you create a bug for this? There's an issue with changing egg shapes as well, in that they aren't treated like they are "special" but just plain old shapes with no additional modifications available in ES. So this barge issue might be connected to that.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: DrCode (---.hsd1.or.comcast.net)
Date:   03-25-17 19:29

I can see why the eggs created in Usecode don't work, and am thinking about a solution. We might need to add a 'create_egg' intrinsic.

But the barges *ought* to work, so I'm looking at that too. Something's wrong...

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   03-25-17 20:10

I would lean towards a new egg intrinsic rather than adding to an existing intrinsic, both for troubleshooting purposes and simplicity for modders. It would be awesome to get all egg types available this way, not just Usecode eggs.

The only correlating fact I can see between these two shapes is that they work fine when added via ES, but not via Usecode.

Your help on these things is much appreciated, DrCode.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: DrCode (---.hsd1.or.comcast.net)
Date:   03-25-17 20:25

Playing around:

1. I noticed that creating a barge through the shape browser wasn't doing it correctly, so I'm fixing that.

2. But double-clicking a barge itself doesn't do anything; you need to have barge 'parts' on top of it. For example, placing a piece of the cart over the new barge and double-clicking that will execute code to find the barge, and then looks for a horse as well.

3. You probably already know that the 'e' key turns on display of eggs and barges. If the barge is created correctly, you'll see a yellow outline of its size, in addition to the red square. As a test, put a horse and a cart piece inside it and double-click one of them (BG).

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: agentorangeguy 
Date:   03-26-17 12:51

wow didn't know that, thanks for all your work on these things DrCode!

-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: DrCode (---.hsd1.or.comcast.net)
Date:   03-28-17 22:55

How useful would it be to have a UI_create_egg intrinsic? It would have to be a bit complicated, with parameters to set all the criteria, plus different ones for each egg type. Are there things you can only do this way, vs creating an egg in ES and then, say, changing its usecode function?

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: KC (---.46.227.226.lightower.net)
Date:   03-29-17 09:46

Very useful to me.
It's complicated, but more "no" than "yes".

I had requested a create-egg-via-usecode feature for a few technical reasons:
A) The mod I am doing is going to require tens of eggs. I would need to manually track and place those rather than just script them. Woe to me if I want to change them.
B) Map editing is fraught with danger, and a wrong change can require reverting and retrying. This has tripped up other modders.
C) Maps are not broken out into source code but rather use a compressed binary, so change tracking relies solely on the submitter's description. SIfixes uses an altered map, mostly due to the inn keeper key collection eggs, but there's no way to prove that via source.
D) Usecode eggs are visibly different from others, so conditional eggs for weather, monsters, etc won't stand out via map editing or show egg mode.
E) Adding many eggs from the start could have a tiny performance impact since each would need to check flags as the player walks around.
F) The only mod storyline part I have written to require egg replacement is in one of the original-but-missed caverns in the Mountains of Freedom. I may be able to change the existing eggs via usecode_array or script blocks.

Ideally we'd have multiple commands like UI_create_usecode_egg, UI_create_teleporter_egg, UI_create_spawn_egg, etc, so the syntax for each is clear. Each would have the coordinates first, then relevant inputs.

While I'd love this feature, I think as a limited resource you're more valuable fixing Combat since that impacts all players not just a few modders.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: agentorangeguy 
Date:   03-29-17 14:39

I agree, combat is probably the highest priority since it's the most broken and is probably the most glaring bug in all of Exult and impacts all players. But whatever you do , it's greatly appreciated! :)

I've not tried the changes yet to the barge object intrinsic yet, since i've been doing map work. As far as the U6 mod goes, I need to be able to create the barge with the proper x, y values and place it where the balloon shape would be, and have it useable with the shape. I'm not sure exactly which route I'm going for the balloon yet, but one idea is to make it similar to the magic carpet where the party would stand in the "basket", doubleclick would raise start the balloon frames to inflate the balloon then double clicking again would lower it then, then being able to deflate the balloon and pack it. The easier way would be not rendering the party once the shape is doubleclicked and a few other things to make it look nice. Both require better looking shapes from Crowley than I'm using right now for a stand in lol

-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   03-31-17 20:51

How did the expansions add eggs in addition to the map changes? Might there a clue there?

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Dominus 
Date:   04-01-17 22:51

Didn't they just make map changes?

--
Read the documentation and the FAQ are your friends! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: KC (---.46.227.226.lightower.net)
Date:   04-01-17 23:54

If I recall right, it was possible to install the expansions and keep going with existing saved games. So how would they update those saves?

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: DrCode (---.hsd1.or.comcast.net)
Date:   04-02-17 00:13

Looking through the usecode disassembly for the copy of SI+SS that I have, the only time I see an egg shape # (0113H) used is in calls to 'find_nearby'.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: KC (---.46.227.226.lightower.net)
Date:   04-02-17 01:31

That's a valid point. I have a mostly pulled-apart version of SI+SS Usecode I can share with you.

For the UCC issue I have, I'll need to check with the latest build of Exult Tools.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: agentorangeguy 
Date:   04-03-17 13:19

I was thinking of some new exult intrinsics / features that could be useful. Would it be possible to make something to where you could place combos from combos.flx in Exult studio via usecode? Maybe the parameters could be something like x, y, z location to place, then # of combo in the combos.flx file. It would be fun to make randomized camps of enemies / monsters in the wilderness like that in an easy way rather than having to manually set the x, y offsets and placing individual objects, but using something like UI_place_combo that will check for space to place the combo and place the combo if true.

Other possible uses for this would be modifying the bedroll code where the Avatar makes a camp that you create in ES with the combo, and places it near the bedroll (Maybe a campfire, pot with food, etc.).

Would also be useful in creating barges maybe... instead of manually creating the barge line by line in code, you create the combo first in ES then you could place the entire combo via exult intrinsic in the code?

Would this be possible?

-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: DrCode (---.mentorg.com)
Date:   04-03-17 21:30

Could be possible. Interesting idea.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   04-03-17 23:23

One of the things I've written as new Usecode function is to create the SI game start boat piece by piece (at once to the player). I did hard code the placement, but it would be possible to make it either an egg and set the placements + or - based on that, or send the position coordinates and then set the placements + or - based on that. Doing something similar for the balloon or barge would be possible.

I like the idea of randomized camps!

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   04-04-17 13:07

I just got wiped out by a Z level height limit:
https://sourceforge.net/p/exult/bugs/1532/

The manor for Selina that I had planned is unusable due to this bug. :(

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   04-04-17 19:39

This is all via Usecode:


This is the result of the limit on the Z-axis:


The highest Z-axis point I've found in SI is the tower NW of Moonshade, with fence pieces at the top at Z-14.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Dominus 
Date:   04-04-17 19:50

That's odd. I think I built higher than that with Studio and it kept.

--
Read the documentation and the FAQ are your friends! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   04-04-17 19:58

Highest surviving levels:

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: agentorangeguy 
Date:   04-05-17 22:20

Why did you build it via code, instead of manually? Looks pretty cool though!

-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   04-06-17 04:04

To show that time had passed while the Avatar was unconscious after Batlin's death.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Dominus 
Date:   04-06-17 06:28

Can you confirm that it is happening with both manual and usecode building?

--
Read the documentation and the FAQ are your friends! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   04-06-17 07:14

Both, via Edit Mode and via Usecode.

0x10 -> 0x0
0x11 -> 0x1
etc.

I'm also not able to save manually placed z-0 flat shapes at z-0 if there's already grass there.

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Dominus 
Date:   04-06-17 14:48

Can you give me an easy to trigger example code? Best a mod with a savegame to trigger it. It may be a regression and I might be able to quickly test with my collection of snapshots where it broke (if it broke in the last couple of years). I'm not able to test with Exult Studio as I didn't keep OS X snapshots of that.

--
Read the documentation and the FAQ are your friends! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   04-06-17 17:22

Sure, I'll email you my latest mod code.

I'm also seeing that importing PNG files into ES is not working correctly, but haven't tracked that down yet. Might be my image editor?

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Dominus 
Date:   04-06-17 17:38

No idea. I generally avoid that and save to shp and import from sho.

Side note, I'd rather see you start new topics than going off topic again and again (this thread is a prime example ;))

--
Read the documentation and the FAQ are your friends! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!

Reply To This Message
 
 Re: UI_create_barge_object intrinsic
Author: Knight Captain 
Date:   04-06-17 17:43

Yeah, it was GIMP. Anyway, the file is over to you.

Reply To This Message
 Go to Top  |  Go to Topic  |  Threaded View   Newer Topic  |  Older Topic 


 
 Reply To This Message
 Your Name:
 Your E-mail:
 Subject:
 Subject:
   
 
SourceForge   phorum.org
 
Problems with Exult or this webpage? Contact us.
Last modified: 24 Oct 2001(GMT)