Jump to content


Photo

To link form a new file to another new file


  • Please log in to reply
67 replies to this topic

#41 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 07 February 2006 - 03:20 AM

It's a COPY_EXISTING. Where else would you put it?

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#42 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 07 February 2006 - 08:12 AM

It's a COPY_EXISTING. Where else would you put it?


.baf script of the area? ;) :P I know, I was just joking a bit, sorry if you misinterpreted

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#43 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 21 February 2006 - 01:47 PM

Two new question:

Can you let someone talk that has no dialog file of their own, like:

BEGIN KICHCLR

CHAIN ~Global("Kidochallstart","GLOBAL",3)~ THEN KICHCLR angrypast
~bla bla~ DO ~SetGlobal("Kidochallstart","GLOBAL",4)~
== KIDOJ
~bla bla~
== KICHCLR
~bla bla~
== KICHWAR
~bla bla~
== KICHTH
~bla bla~
== KIDOJ
~bla bla~
== KICHCLR
~bla bla~
END
IF ~~ THEN REPLY ~bla bla~ EXTERN KICHCLR angrypast2
IF ~~ THEN REPLY ~bla bla~ EXTERN KICHCLR angrypast3 


IF ~Global("Kidochallstart","GLOBAL",4)~ THEN BEGIN angrypast2
SAY ~bla bla~ 
IF ~~ THEN REPLY ~bla bla~ GOTO angrypast4
IF ~~ THEN REPLY ~bla bla~ GOTO angrypast5
END

The file comes from Kichclr, to whom this dialog file is appointed, but kichwar and kichth have no dialog files. Can they speak? Or will that lead to an error?

Also, is the extern needed or can I just use a GO TO, I used this code as I have it from, I believe, SConrad for a banter between kido and korgan and possible replies of the PC, where one led to BKorgan file again, which is an external file for the file this is all called from (BKido), so I don't know if it is needed here.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#44 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 21 February 2006 - 11:15 PM

The file comes from Kichclr, to whom this dialog file is appointed, but kichwar and kichth have no dialog files. Can they speak? Or will that lead to an error?

If the dialogue files are appointed to the creature, but the dialogue is empty, the CHAIN should just add to the dlg.

Also, is the extern needed or can I just use a GO TO, I used this code as I have it from, I believe, SConrad for a banter between kido and korgan and possible replies of the PC, where one led to BKorgan file again, which is an external file for the file this is all called from (BKido), so I don't know if it is needed here.

EXTERN is necessary.

You also need to put the CHAIN below all other 'normal' dialogue, or use APPEND after it.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#45 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 22 February 2006 - 03:15 AM

For clearance, you mean like this?:

== KICHCLR
~~
END
IF ~~ THEN REPLY ~~ EXTERN KICHCLR angrypast2

APPEND KICHCLR
IF ~Global("Kidochallstart","GLOBAL",4)~ THEN BEGIN angrypast2
SAY ~~ 
IF ~~ THEN REPLY ~~ GOTO angrypast3
END

IF ~~ THEN BEGIN angrypast3
SAY ~~ 
IF ~~ THEN REPLY ~~ GOTO angrypast..
IF ~~ THEN REPLY ~~ GOTO angrypast..
END

IF ~~ THEN BEGIN angrypast..
SAY ~~ 
IF ~~ THEN REPLY ~~ GOTO angrypast..
IF ~~ THEN REPLY ~~ GOTO angrypast..
END
END

Edited by Deathsangel, 22 February 2006 - 03:16 AM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#46 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 23 February 2006 - 08:54 AM

Yes.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#47 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 23 February 2006 - 11:05 AM

Great thanks, then I'm done with this conversation and thus the challenge of Kido. I'm nearing completion of version 4...

What I do find strange is the following. I made five enemies, however, kichth does not open in NI after modification, but still does in SK. Whereas it is the other way around with another. If I load any of them in DLTCEP, it says their harmless inconsistency and that he changes this... however all stats, thaco; just the whole first page is gone...? :huh: I find it weird and now I can't give them random loot for I only know how to do this in DLTCEP... oh well, they already have pretty loot, so I don't mind that really much, but isn't it a bit strange? But he I already have problem with my register... Is this an occurence that happens more often? Or is it so that this is really weird? I will test them in game as soon as I can get WeiDu to see my chitin.key, so that I can compile my files...

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#48 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 23 February 2006 - 11:51 AM

You shouldn't release a mod with broken .cre-files. I'd fix them or create new ones.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#49 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 23 February 2006 - 01:44 PM

You shouldn't release a mod with broken .cre-files. I'd fix them or create new ones.


I've attached them, cause I don't see why they are broken. Would you be so kind as to look at them? It is kichth that doesn't open in NI and kicharc not in SK, I haven't tested all of them in SK, so I don't know about that problem. I made this team in game (wanted the right proficiencies and stuff and I know I can do that otherwise, but I just did it...) and made changes to equipment and spells via SK and scripts (and removal of the player ones) via NI. Or should I just let DLTCEP make the corrections it saying and fill in the stats anew in DLTCEP?

Edit: Oh and for the record I wasn't planning on releasing it like this. I said I wanted to test this in game first...

Attached Files

  • Attached File  Cre.zip   3.18K   83 downloads

Edited by Deathsangel, 23 February 2006 - 01:52 PM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#50 Rabain

Rabain

    God

  • Member
  • 653 posts

Posted 23 February 2006 - 02:25 PM

Try this, before you open the cre file in DLTCEP click on one of the other edit tabs for the cre file (the one for assigning the portraits for example). Then go to the file menu, choose Open External Cre and select your cre file, you should still get the harmless inconsistency message but when you go back to the other tabs the correct information should still be there.

It is an oddity I have brought up before that happens with DLTCEP. The portraits tab is probably the best one to select before opening the cre file as I have experienced the least problems with this one. Once you have made your changes be sure to save the cre into your mod folder as DLTCEP automatically saves to the Override unless directed elsewhere.

I tested your files and while I did get the harmless inconsistency message there were no missing stats, savings throws etc.

Edited by Rabain, 23 February 2006 - 02:27 PM.

A knight without armour in a savage land...

#51 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 23 February 2006 - 02:48 PM

Try this, before you open the cre file in DLTCEP click on one of the other edit tabs for the cre file (the one for assigning the portraits for example). Then go to the file menu, choose Open External Cre and select your cre file, you should still get the harmless inconsistency message but when you go back to the other tabs the correct information should still be there.

It is an oddity I have brought up before that happens with DLTCEP. The portraits tab is probably the best one to select before opening the cre file as I have experienced the least problems with this one. Once you have made your changes be sure to save the cre into your mod folder as DLTCEP automatically saves to the Override unless directed elsewhere.

I tested your files and while I did get the harmless inconsistency message there were no missing stats, savings throws etc.


Great! I'll try it at once!

Edit: Okay, so I did this... though none has sound I found out (but good screen to load in DLTCEP or else the colours go away) and now DLTCEP says there is nomore harmless inconsistency. SK finds them all, NI still not satisfied with kichth... is that still seen as a corrupted .cre or just something funny?

Edited by Deathsangel, 23 February 2006 - 03:18 PM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#52 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 26 February 2006 - 04:49 AM

A new question about files looking at one another or beter to say Globals, normally but also for globals attached to areas?

I have two different conditions in which my NPC needs to be created at a different place so I coded this as an extend on the area script of aread ar0509:

IF
 Global("KidoExists","AR0509",0)
 Dead("Mekrath")
 !Global("KidoExists","AR0510",1)
THEN
 RESPONSE #100
 SetGlobal("KidoExists","AR0509",1)
 CreateCreature("Kido",[568.712],11)
END

For Kido is created in AR0510 is Mekrath isn't dead. Can this area script check the global of the other area or do I need to make a common ExistKido global so that both areas can check that global to see if he exists...


Second question that comes up; I just added a script to a .cre file that was already in game (or else cleric wouldn't defend himself very well) and I thought of putting this in the override, but for compatibility and such I think it is better if I could assign to him via .tp2. Is there a code for that?

Edited by Deathsangel, 26 February 2006 - 07:26 AM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#53 Shed

Shed

    -Shed-

  • Modder
  • 2636 posts

Posted 27 February 2006 - 03:31 PM

Can this area script check the global of the other area or do I need to make a common ExistKido global so that both areas can check that global to see if he exists...

That should work ok.

Second question that comes up; I just added a script to a .cre file that was already in game (or else cleric wouldn't defend himself very well) and I thought of putting this in the override, but for compatibility and such I think it is better if I could assign to him via .tp2. Is there a code for that?


For your tp2:
COPY ~mymod/jim.cre~ ~override/jim.cre~
  WRITE_ASCII SCRIPT_OVERRIDE ~jim~
  WRITE_ASCII SCRIPT_CLASS ~jim~
  WRITE_ASCII SCRIPT_RACE ~jim~
  WRITE_ASCII SCRIPT_GENERAL ~jim~
  WRITE_ASCII SCRIPT_DEFAULT~jim~


#54 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 28 February 2006 - 12:07 AM

Thanks shed, but looking at your code it looks as if I still need to copy the .cre file from the game and then put it in the override folder. If that is true I can't see the advantage above just adding the script to the .cre file and put that as a whole in the engine.
Perhaps for clarity I am talking about Arenthis the cleric in the Graveyard district with the little girl for whom he seeks a new parent. If you attack him, he has no script to make use of his lovely spells (though those spells contain wizard ones whereas he is only a cleric, but if you use a nice script he won't use those anyway...). Thus I asigned him a normal in game cleric script exported this new .cre file to my mod's cre folder and call upon it via

COPY ~Kido/cre/Arenthis.cre~ ~override/Arenthis.cre~

Whereas I hope for something like

COPY ~Arenthis.cre~
  WRITE_ASCII SCRIPT_GENERAL ~pries8a~

So that the .cre file is just extended in the game and there is no need for it to be come from my mod, so that anyone else adding something to this character can do it likewise without the mods being incompatible

Edited by Deathsangel, 28 February 2006 - 12:11 AM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#55 Grim Squeaker

Grim Squeaker

    Fallen

  • Member
  • 1018 posts

Posted 28 February 2006 - 12:45 AM

Then you just:

COPY_EXISTING ~Arenthis.cre~ ~override~
  WRITE_ASCII SCRIPT_GENERAL ~pries8a~

"You alone can make my song take flight..."

#56 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 28 February 2006 - 03:15 AM

Thanks, I am just quite unfamiliar with these type of codings...

Note to self: dig in to this "COPY EXISTING & WRITE_ASCII businesss"

Edited by Deathsangel, 28 February 2006 - 03:29 AM.

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#57 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 05 March 2006 - 09:14 AM

what file adds items to areas if I may ask and can I use this WRITE_ASCII again to add one object into existing container?

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#58 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 05 March 2006 - 09:20 AM

You're much better off doing that by scripting. That kind of .are-patching is a bit complex.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#59 Deathsangel

Deathsangel

    Living on Wings of Dreams

  • Modder
  • 3089 posts

Posted 05 March 2006 - 10:59 AM

You're much better off doing that by scripting. That kind of .are-patching is a bit complex.


Okay, I reckon you mean the script of the area? I look in IESDP then how to add it to a container

Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.


Sentences marking (my) life:

Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams



(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable :P

~~ I love it, and I am humbled! Yay! ~~


#60 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 05 March 2006 - 12:06 PM

http://iesdp.gibberl...2actions.htm#82

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner