[CF-Devel] faster portgate (context diff)

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Tue May 11 23:19:18 CDT 2004


As i hate waiting, i made this patch for the gate to the port in Scorn.

With this patch, the gates will open immediately when you step up to them.
Furthermore the guards only speak if there is something to say.

The patch was made on the bigworld maps, but ought to work on smallworld
too.


Multipart oddities i discovered with this map:

1) All parts of the dragon except the head (upper-left) ended up below the
teleporters. I managed to work around this by giving the teleporters
is_floor 1.
Other items (e.g. ones that can be picked up) are more troublesome.
This problem ought to vanish with the new layering system.

2) Only the dragons head can push a button.
So, if you move one of the buttons triggering the guards' speech from
the upper-left to any other corner, it no longer works.
-------------- next part --------------
Index: scorn/anthony/portgate
===================================================================
RCS file: /cvsroot/crossfire/maps-bigworld/scorn/anthony/portgate,v
retrieving revision 1.2
diff -c -5 -r1.2 portgate
*** scorn/anthony/portgate	3 Nov 2002 07:04:16 -0000	1.2
--- scorn/anthony/portgate	12 May 2004 02:14:31 -0000
***************
*** 3,13 ****
  msg
  Creator: Anthony Thyssen
  Email: 
     
     anthony at cit.gu.edu.au
     
     
  Date: Mon Dec 28 11:08:59 1998
  endmsg
! width 18
  height 13
  outdoor 1
  end
  arch cobblestones2
  end
--- 3,13 ----
  msg
  Creator: Anthony Thyssen
  Email: 
     
     anthony at cit.gu.edu.au
     
     
  Date: Mon Dec 28 11:08:59 1998
  endmsg
! width 22
  height 13
  outdoor 1
  end
  arch cobblestones2
  end
***************
*** 1438,1448 ****
  end
  arch mine2
  x 12
  y 3
  end
! arch dungeon_magic
  x 12
  y 4
  end
  arch magic_mouth
  name magic_mouth (gate open/close)
--- 1438,1448 ----
  end
  arch mine2
  x 12
  y 3
  end
! arch blocked
  x 12
  y 4
  end
  arch magic_mouth
  name magic_mouth (gate open/close)
***************
*** 1451,1497 ****
  a loud noise as anchient machinary is
  set in motion to move the rusty gates.
  endmsg
  connected 10
  x 12
- y 4
- end
- arch dungeon_magic
- x 12
  y 5
  end
! arch mine16
! x 12
! y 5
! end
! arch dungeon_magic
! x 12
! y 6
! end
! arch mine12
  x 12
  y 6
  end
! arch dungeon_magic
! x 12
! y 7
! end
! arch button_small
! connected 10
! x 12
! y 7
! end
! arch gateTrg1
! connected 11
  x 12
  y 7
  end
! arch dungeon_magic
! x 12
! y 8
! end
! arch mine9
  x 12
  y 8
  end
  arch dungeon_magic
  x 12
--- 1451,1486 ----
  a loud noise as anchient machinary is
  set in motion to move the rusty gates.
  endmsg
  connected 10
  x 12
  y 5
  end
! arch magic_mouth
! name magic_mouth (port pass)
! msg
! On seeing you have a port pass the guard
! turns a rusty handle and says...
! Everything appears in order. Pass friend.
! endmsg
! connected 22
! activate_on_release 0
  x 12
  y 6
  end
! arch magic_mouth
! name magic_mouth (hero of scorn)
! msg
! The guard seeing that the Hero approches
! turns the handle to open the gate.
! endmsg
! connected 23
! activate_on_release 0
  x 12
  y 7
  end
! arch blocked
  x 12
  y 8
  end
  arch dungeon_magic
  x 12
***************
*** 1538,1616 ****
  end
  arch mine2
  x 13
  y 3
  end
! arch dungeon_magic
  x 13
  y 4
  end
! arch magic_mouth
! name magic_mouth (port pass)
! msg
! On seeing you have a port pass the guard
! turns a rusty handle and says...
! Everything appears in order. Pass friend.
! endmsg
! connected 12
! x 13
! y 4
! end
! arch dungeon_magic
  x 13
  y 5
  end
! arch mine2
  x 13
  y 5
  end
! arch dungeon_magic
! x 13
! y 6
! end
! arch button_small
! connected 10
! x 13
! y 6
! end
! arch gateTrg1
  connected 12
  x 13
! y 6
  end
! arch dungeon_magic
  x 13
! y 7
  end
! arch button_small
! face button_sma.112
! value 1
! connected 20
  x 13
! y 7
  end
! arch spikes_open
! speed 0.500000
! connected 20
  x 13
! y 7
  end
! arch boulder
  x 13
  y 7
  end
! arch dungeon_magic
! x 13
! y 8
! end
! arch button_small
! connected 10
! x 13
! y 8
! end
! arch gateTrg1
! connected 14
  x 13
  y 8
  end
  arch dungeon_magic
  x 13
--- 1527,1597 ----
  end
  arch mine2
  x 13
  y 3
  end
! arch blocked
  x 13
  y 4
  end
! arch creator
! name creator 14 password
! other_arch scroll
! lifesave 1
! connected 14
  x 13
  y 5
  end
! arch creator
! name creator 13 hero
! other_arch scroll
! lifesave 1
! connected 13
  x 13
  y 5
  end
! arch creator
! name creator 12 pass
! other_arch scroll
! lifesave 1
  connected 12
  x 13
! y 5
  end
! arch creator
! name creator 11 lever
! other_arch scroll
! connected 11
! lifesave 1
  x 13
! y 5
  end
! arch permanent_lava
  x 13
! y 5
  end
! arch altar_trigger
! name altartrig gate
! slaying scroll
! food 1
! connected 10
! exp 100
  x 13
! y 5
  end
! arch card
! name Hero Pass
! msg
! This is the HERO Pass ;-)
! endmsg
! slaying hero_of_scorn
! value 2500
! identified 1
  x 13
  y 7
  end
! arch blocked
  x 13
  y 8
  end
  arch dungeon_magic
  x 13
***************
*** 1657,1715 ****
  end
  arch mine2
  x 14
  y 3
  end
! arch dungeon_magic
! x 14
! y 4
! end
! arch magic_mouth
! name magic_mouth (hero of scorn)
! msg
! The guard seeing that the Hero approches
! turns the handle to open the gate.
! endmsg
! connected 13
  x 14
  y 4
  end
! arch dungeon_magic
! x 14
! y 5
! end
! arch mine16
  x 14
  y 5
  end
! arch dungeon_magic
! x 14
! y 6
! end
! arch mine4
  x 14
  y 6
  end
! arch dungeon_magic
! x 14
! y 7
! end
! arch button_small
! connected 10
  x 14
  y 7
  end
! arch gateTrg1
! connected 13
! x 14
! y 7
! end
! arch dungeon_magic
! x 14
! y 8
! end
! arch mine10
  x 14
  y 8
  end
  arch dungeon_magic
  x 14
--- 1638,1664 ----
  end
  arch mine2
  x 14
  y 3
  end
! arch blocked
  x 14
  y 4
  end
! arch blocked
  x 14
  y 5
  end
! arch blocked
  x 14
  y 6
  end
! arch blocked
  x 14
  y 7
  end
! arch blocked
  x 14
  y 8
  end
  arch dungeon_magic
  x 14
***************
*** 1772,1806 ****
  end
  arch dungeon_magic
  x 15
  y 5
  end
! arch mine14
  x 15
  y 5
  end
  arch dungeon_magic
  x 15
  y 6
  end
! arch mine9
  x 15
  y 6
  end
  arch dungeon_magic
  x 15
  y 7
  end
! arch mine3
  x 15
  y 7
  end
  arch dungeon_magic
  x 15
  y 8
  end
! arch mine14
  x 15
  y 8
  end
  arch dungeon_magic
  x 15
--- 1721,1755 ----
  end
  arch dungeon_magic
  x 15
  y 5
  end
! arch mine11
  x 15
  y 5
  end
  arch dungeon_magic
  x 15
  y 6
  end
! arch mine11
  x 15
  y 6
  end
  arch dungeon_magic
  x 15
  y 7
  end
! arch mine11
  x 15
  y 7
  end
  arch dungeon_magic
  x 15
  y 8
  end
! arch mine11
  x 15
  y 8
  end
  arch dungeon_magic
  x 15
***************
*** 1966,1970 ****
--- 1915,2159 ----
  end
  arch grass
  x 17
  y 12
  end
+ arch blocked
+ x 18
+ end
+ arch blocked
+ x 18
+ y 1
+ end
+ arch blocked
+ x 18
+ y 2
+ end
+ arch blocked
+ x 18
+ y 3
+ end
+ arch blocked
+ x 18
+ y 4
+ end
+ arch blocked
+ x 18
+ y 5
+ end
+ arch blocked
+ x 18
+ y 6
+ end
+ arch blocked
+ x 18
+ y 7
+ end
+ arch blocked
+ x 18
+ y 8
+ end
+ arch blocked
+ x 18
+ y 9
+ end
+ arch blocked
+ x 18
+ y 10
+ end
+ arch blocked
+ x 18
+ y 11
+ end
+ arch blocked
+ x 18
+ y 12
+ end
+ arch blocked
+ x 19
+ end
+ arch blocked
+ x 19
+ y 1
+ end
+ arch blocked
+ x 19
+ y 2
+ end
+ arch blocked
+ x 19
+ y 3
+ end
+ arch blocked
+ x 19
+ y 4
+ end
+ arch blocked
+ x 19
+ y 5
+ end
+ arch blocked
+ x 19
+ y 5
+ end
+ arch blocked
+ x 19
+ y 6
+ end
+ arch blocked
+ x 19
+ y 7
+ end
+ arch blocked
+ x 19
+ y 8
+ end
+ arch blocked
+ x 19
+ y 9
+ end
+ arch blocked
+ x 19
+ y 10
+ end
+ arch blocked
+ x 19
+ y 11
+ end
+ arch blocked
+ x 19
+ y 12
+ end
+ arch teleporter
+ name teleporter 12 pass
+ hp 20
+ sp 6
+ connected 12
+ speed 0.0
+ x 20
+ end
+ arch teleporter
+ name teleporter 13 hero
+ hp 20
+ sp 3
+ connected 13
+ speed 0.0
+ is_floor 1
+ x 20
+ y 1
+ end
+ arch blocked
+ x 20
+ y 2
+ end
+ arch button_small
+ name button 23 hero
+ connected 23
+ activate_on_release 0
+ x 20
+ y 3
+ end
+ arch teleporter
+ name teleporter back
+ hp 20
+ sp 0
+ connected 99
+ speed 0.0
+ x 20
+ y 4
+ end
+ arch blocked
+ x 20
+ y 5
+ end
+ arch button_small
+ name button 22 pass
+ connected 22
+ activate_on_release 0
+ x 20
+ y 6
+ end
+ arch teleporter
+ name teleporter back
+ hp 20
+ sp 0
+ connected 99
+ speed 0.0
+ x 20
+ y 7
+ end
+ arch blocked
+ x 20
+ y 8
+ end
+ arch teleporter
+ name teleporter back
+ hp 20
+ sp 0
+ connected 99
+ speed 0.0
+ x 20
+ y 9
+ end
+ arch blocked
+ x 20
+ y 11
+ end
+ arch creator
+ name creator 10
+ other_arch scroll
+ connected 10
+ lifesave 1
+ x 20
+ y 12
+ end
+ arch altar_trigger
+ name altartrig back
+ slaying scroll
+ food 2
+ connected 99
+ exp 10
+ last_sp 1
+ x 20
+ y 12
+ end
+ arch teleporter
+ name teleporter 11 lever
+ hp 20
+ sp 9
+ connected 11
+ speed 0.0
+ is_floor 1
+ x 21
+ end
+ arch teleporter
+ name teleporter 14 password
+ hp 20
+ sp 9
+ connected 14
+ speed 0.0
+ is_floor 1
+ x 21
+ y 1
+ end
+ arch blocked
+ x 21
+ y 2
+ end
+ arch blocked
+ x 21
+ y 5
+ end
+ arch blocked
+ x 21
+ y 8
+ end
+ arch blocked
+ x 21
+ y 11
+ end
+ arch chinese_dragon
+ unaggressive 1
+ stand_still 1
+ randomitems none
+ x 20
+ end
-------------- next part --------------
_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list