Duke4.net Forums: EDuke32 Scripting - Duke4.net Forums

Jump to content

  • 124 Pages +
  • « First
  • 53
  • 54
  • 55
  • 56
  • 57
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

EDuke32 Scripting  "CON coding help"

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#1615

View PostTrooper Dan, on 20 March 2015 - 11:57 PM, said:

There's a lot of stuff being loaded that you aren't showing us, including your custom def file.

Speaking of, are these ALL the CON files you are using?
0

User is offline   Helixhorned 

  • EDuke32 Developer

#1616

^ Yup, that's an important point.

GIRLS.CON compiles fine as a module for me ("-mx GIRLS.CON"). It may really be helpful if we could see all CON files that get translated. From the log, it seems like GAME.CON is the root file for you. I don't understand why the error spam appears long after the script has been compiled. Also, r4410 is somewhat outdated; please try the most recent synthesis build.
0

#1617

View PostTrooper Dan, on 22 March 2015 - 06:33 AM, said:

Have you tried using a debug build to see if it gives you more information in the log file when it fails?


I have never done that before nor have I ever heard of it.


View PostFox, on 22 March 2015 - 07:37 AM, said:

Speaking of, are these ALL the CON files you are using?



[b]Duke3d - Invasion[/b]

DEF.CON
GAME.CON
USER.CON

     [b]1337DA[/b]
          BEACHBAB.CON
          GIRLS.CON

     [b]DUKEPLUS[/b]
          EDUKE.CON
               dpcons
                    CIVILIANS.CON
                    DEFSPLUS.CON
                    DNE.CON
                    DUKEPLUS.CON
                    HUDPLUS.CON
                    LIGHTS.CON
                    MONSTERPLUS.CON
                    PLAYERPLUS.CON
                    USERPLUS.CON








View PostHelixhorned, on 22 March 2015 - 08:41 AM, said:

^ Yup, that's an important point.

GIRLS.CON compiles fine as a module for me ("-mx GIRLS.CON"). It may really be helpful if we could see all CON files that get translated. From the log, it seems like GAME.CON is the root file for you. I don't understand why the error spam appears long after the script has been compiled. Also, r4410 is somewhat outdated; please try the most recent synthesis build.


I'll go update that. Ahh theres the debug files I don't have. I'll run those 'n see what happens.







Also I wasn't aware that you need to use the command line to call out con files.

This is my def layout it's a txt because it said i wasn't allowed to upload a def

Attached File(s)



This post has been edited by 1337DirtAlliance: 22 March 2015 - 07:32 PM

0

#1618

Now if I use the '-x girls.con' tag in the target line I get whats in the log file and it wont even load. It says there are errors in the con file and ask me if I want to load internals and if I say yes it says I don't have a grp file lol.

Attached File(s)


0

User is offline   Mblackwell 

  • Evil Overlord

#1619

-x uses girls.con as your main CON file. -mx includes it in addition to whatever's defined in GAME.CON. Also you should include your CON files in GAME.CON, not in the def.
0

#1620

This is with -mx. It throws a message saying there are errors in EDUKE.CON now. I really hate con code this makes php look easy

Attached File(s)


0

User is offline   Mblackwell 

  • Evil Overlord

#1621

You have such an odd assortment of CON files. When debugging CON you strip everything down to the fewest number of CON files/last known "good" state and then add things in until it breaks.

And that log actually says you don't have palette.dat.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#1622

Do you have a copy of DUKE3D.GRP in the directory?
0

#1623

I have all the core DN3D files so thats odd it'd even echo false remarks of my physical files.



This is with no extra con files and just my own added


Spoiler

0

#1624

I deleted all game data and did a fresh install and it appears that the game con right out of the box has issues.

And then when I add a include in the game con for my con it wont even launch anymore and says there are errors in game.con and wants to load internals. When I say yes. It says error compiling con. So it looks like this ain't happening for me if my original con is trash right from the cd. I blame dosbox.

Attached File(s)


0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#1625

View Post1337DirtAlliance, on 26 March 2015 - 02:08 PM, said:

it appears that the game con right out of the box has issues.

True. But it doesn't break the game.

This post has been edited by Fox: 26 March 2015 - 02:18 PM

0

User is offline   Hendricks266 

  • Weaponized Autism

  #1626

View Post1337DirtAlliance, on 26 March 2015 - 02:08 PM, said:

I deleted all game data and did a fresh install and it appears that the game con right out of the box has issues.

The original cons have warnings, yes, but they don't affect the game.
0

#1627

Why did it work for Helix?? doesn't make any sense.
0

User is offline   Mblackwell 

  • Evil Overlord

#1628

it says in the warning you have a stray "ends". You probably wanted "enda".
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#1629

No, it's more than just that. Apparently there is an open actor prior to his CON.
0

#1630

Changing ends to enda and having the -mx param and sprite being called out as tilenum works.


Changing ends to enda and having -ms param and sprite being called by its def name FEM20 fails. Says it's not defined.
0

#1631

HAHAHAHHAHAHHAHAHHAH


I added the beachbab.con into the mx param and it worked but instead of it being the girl I had a still of one my tv's following me.




If I try to use the one Hendricks wrote vbeachbabe.con it:

Including: VBeachBabe.con (6361 bytes)
VBeachBabe.con: In state `BEACHBABESTATE':
VBeachBabe.con:118: error: state `babechecksquished' not found.
VBeachBabe.con:130: error: symbol `vaca_pose' is not a game variable.
VBeachBabe.con:155: error: state `stopbeachbabebathersounds' not found.
VBeachBabe.con:235: error: state `stopbeachbabebathersounds' not found.
VBeachBabe.con:240: error: state `standard_bjibs' not found.
Found 2 warning(s), 5 error(s).


The vanilla con 'beachbab' works but doesn't show the proper tile. Tv following me telling me to watch were I point that thing lololol

This post has been edited by 1337DirtAlliance: 26 March 2015 - 04:48 PM

0

User is offline   Lava Grunt 

#1632

Just asking if dev build 5118 is capable of loading USER.CON, as I have it in my EDuke32 folder but it isn't used at all when I launch the game.

Nevermind, latest release on the port's webpage fixed the corrupted save game problem and also seems to load my con file again.

This post has been edited by Lava Grunt: 10 April 2015 - 10:47 AM

0

User is offline   xenoxols 

#1633

Is there a way to add recoil (view tilting upwards) to weapon firing?
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#1634

Yes. But it depends on how you want to do it.
0

User is offline   xenoxols 

#1635

Well I'm kind of a noob and I don't know how to find an example of duke3d's EVENT_DOFIRE, so I can't find any firing states. They're not in the weapons.con.sample included with eduke32, as far as I know.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#1636

This should work:

gamevar TEMP 0 0
gamevar TILT 0 1

onevent EVENT_DOFIRE
  switch player[THISACTOR].curr_weapon
  case PISTOL_WEAPON
  case CHAINGUN_WEAPON
    setvar TILT 3
  break
  case SHOTGUN_WEAPON
    setvar TILT 10
  break
  endswitch
endevent

onevent EVENT_GAME
  ifactor APLAYER
  ifvarn TILT 0
  {
    getplayer[THISACTOR].horizoff TEMP
    addvarvar TEMP TILT
    setplayer[THISACTOR].horizoff TEMP
    setvar TILT 0
  }
endevent


This post has been edited by Fox: 27 April 2015 - 05:34 PM

1

User is offline   xenoxols 

#1637

Hey thanks, I just added the other weapon in there (minus pipebombs and the mighty foot) and it worked great.
1

User is offline   Chip 

#1638

I've made enemies get bigger each time they are struck by the Expander, and with it made their sounds get deeper using "setactorsoundpitch".

However, a problem occurs - it appears that the setactorsoundpitch command doesn't set the sound pitch but instead adds/subtracts from what's already there (assuming it modifies the sound after any defined properties are added). This means sound files defined to have a random pitch will affect how setactorsoundpitch is applied. So if by random the defined sound pitch for the sound file gives it +256, then if setactorsoundpitch is set to -512, I end up with only -256 sound pitch.

Is there any way to have the sound pitch for a sound file be exactly what setactorsoundpitch sets? Can I reset the sound pitch for a sound before using setactorsoundpitch? Or is the only solution to remove all defined sound pitch flags from the sound files and use setactorsoundpitch to add them back, but not when my enemies get expanded?

This post has been edited by Chip: 22 May 2015 - 05:59 AM

1

User is offline   Hendricks266 

  • Weaponized Autism

  #1639

View PostChip, on 22 May 2015 - 05:53 AM, said:

However, a problem occurs - it appears that the setactorsoundpitch command doesn't set the sound pitch but instead adds/subtracts from what's already there (assuming it modifies the sound after any defined properties are added). This means sound files defined to have a random pitch will affect how setactorsoundpitch is applied. So if by random the defined sound pitch for the sound file gives it +256, then if setactorsoundpitch is set to -512, I end up with only -256 sound pitch.

The behavior you've described is exactly as intended.
1

User is offline   Chip 

#1640

Ok, I can work around that, now that I know exactly how it works.

Next question: Can I prevent the player from saving the game? I tried using "setvar RETURN -1" from within EVENT_SAVEGAME, but the event continues as normal and a saved game is created.

This post has been edited by Chip: 28 May 2015 - 04:51 AM

0

User is offline   Perro Seco 

#1641

Is there any way via CON files to hide or delete some functions from this list?

Also, can I hide other options from the options menu like "Duke Talk" or "Screen Size"? They'll be unused in my TC.

This post has been edited by Perro Seco: 13 June 2015 - 03:57 AM

0

User is offline   Mark 

#1642

I checked a bunch of project folders on my drive and many have the choices blank but not removed so I'm guessing there is no easy way to do it.
0

User is offline   Danukem 

  • Duke Plus Developer

#1643

So what is the best way to prevent the episode 4 cutscene from starting these days? Should I do something in EVENT_CUTSCENE? Setting RETURN to -1 makes it show the first frame of the video and then pause until I press a key.
0

User is offline   Hendricks266 

  • Weaponized Autism

  #1644

View PostTrooper Dan, on 01 July 2015 - 03:21 PM, said:

So what is the best way to prevent the episode 4 cutscene from starting these days?

http://wiki.eduke32....wiki/LOGO_FLAGS
1

Share this topic:


  • 124 Pages +
  • « First
  • 53
  • 54
  • 55
  • 56
  • 57
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options