Night.png);">
Apprendre


Vous êtes
nouveau sur
Oniromancie?

Visite guidée
du site


Découvrir
RPG Maker

RM 95
RM 2000/2003
RM XP
RM VX/VX Ace
RM MV/MZ

Apprendre
RPG Maker

Tutoriels
Guides
Making-of

Dans le
Forum

Section Entraide

Tutos: Checklist de la composition (...) / Sorties: Dread Mac Farlane - episode 8 / Sorties: Dread Mac Farlane - episode 7 / Jeux: Ce qui vit Dessous / News: Quoi de neuf sur Oniromancie (...) / Chat

Bienvenue
visiteur !




publicité RPG Maker!

Statistiques

Liste des
membres


Contact

Mentions légales

561 connectés actuellement

29380121 visiteurs
depuis l'ouverture

9488 visiteurs
aujourd'hui



Barre de séparation

Partenaires

Indiexpo

Akademiya RPG Maker

Blog Alioune Fall

Fairy Tail Constellations

Zarok

Leo-Games

Tashiroworld

Tous nos partenaires

Devenir
partenaire



Anti-Event Lag

Script anti-lag pour Vx

Script pour RPG Maker VX
Ecrit par sandgolem (site de l'auteur)
Publié par Tata Monos (lui envoyer un message privé)
Signaler un script cassé

❤ 0

NomAnti-Event Lag
AuteurSandgolem
Logiciel:Rpg Maker Vx
Info
Ba voici un script anti Lag. Mais pour savoir l'utiliser
c'est à vous de chercher car je ne sais pas. (Enfin j'ai pas cherché.)

Voici les instructions anglaise tous de même.

Citation:

AntiLagDisable = 0
Change that number if you would like to use a switch to disable the anti lag script.

AntiLagAlwaysMove = '&'
Including the & sign (changable in this line) in an event's name will cause it to always move regardless of where it is. This is good for events you have on a schedule such as a baker who moves between his bakery and the grocery store bringing in fresh loaves of bread.

The other numbers at the top of the script control how much distance away from the screen is refreshed. You may want to change these if you are using larger charactersets.




Portion de code : Tout sélectionner

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
#===================================
# ** GameBaker Anti-Event Lag
#===============================
# by sandgolem 
#   Concept based on Near Fantastica's original RMXP script
#
# Still a beta version, still the looping bug
#
# Version 3 [VX]
# February 22nd, 2008
#==========================================
 
module GameBaker
  AntiLagDisable = 0
  AntiLagModifierX = 408
  AntiLagModifierWidth = 272
  AntiLagModifierY = 272
  AntiLagModifierHeight = 408
  AntiLagAlwaysMove = '&'
end
 
#=========================================
#
# To check for updates or find more scripts, visit:
#       http://www.gamebaker.com/rmvx/scripts/
# Our RMXP scripts: http://www.gamebaker.com/rmxp/scripts/
#
# This script is not exclusive to our site!
# Feel free to pass around as long as you leave the links here.
# A license is required for commercial use, see instructions below.
#
# Instructions: http://www.gamebaker.com/rmvx/scripts/e/anti-event-lag.php
# Discussion/Help: http://forums.gamebaker.com/showthread.php?t=1242
#
#==============================
 
class Game_CommonEvent 
  alias gamebaker_antilag_commonrefresh refresh 
  def refresh
    gamebaker_antilag_commonrefresh
    gamebaker_antilag_add if @interpreter
    gamebaker_antilag_remove if !@interpreter
  end
  
  def gamebaker_antilag_remove
    return if !$game_map.gb_antilagcommons.include?(@common_event_id)
    $game_map.gb_antilagcommons -= [@common_event_id]
  end
  
  def gamebaker_antilag_add
    return if $game_map.gb_antilagcommons.include?(@common_event_id)
    $game_map.gb_antilagcommons += [@common_event_id]
  end
end
 
class Game_Event
  def force_move_route(move_route)
    super(move_route)
    if $game_map.gb_antilagnonmove.include?(@id)
      $game_map.gb_antilagnonmove -= [@id]
      $game_map.gb_antilagmoveevents += [@id]
    end
  end  
  
  alias gamebaker_antilag_init initialize
  def initialize(map_id, event)
    gamebaker_antilag_init(map_id, event)
    if event.name.include?(GameBaker::AntiLagAlwaysMove)
      $game_map.gb_antilagmove += [@id]
    end
  end
  
  alias gamebaker_antilag_evsetup setup 
  def setup(new_page)
    gamebaker_antilag_evsetup(new_page)
    if @trigger == 3 or @trigger == 4
      start if @trigger == 3
      if !$game_map.gb_antilagprocess.include?(@id)
        $game_map.gb_antilagprocess += [@id]
      end
    elsif $game_map.gb_antilagprocess.include?(@id)
      $game_map.gb_antilagprocess -= [@id]
    end
    if @character_name == "" && @tile_id == 0
      if !$game_map.gb_antilagnosprite.include?(@id)
        $game_map.gb_antilagnosprite += [@id]
      end
    elsif $game_map.gb_antilagnosprite.include?(@id)
      $game_map.gb_antilagnosprite -= [@id]
    end
    if @move_type == 0 && !@step_anime &&
      !$game_map.gb_antilagnonmove.include?(@id)
      $game_map.gb_antilagnonmove += [@id]
    elsif $game_map.gb_antilagnonmove.include?(@id)
      $game_map.gb_antilagnonmove -= [@id]
    end
  end
  
  def gamebaker_antilag_interupdate
    if @interpreter != nil
      unless @interpreter.running?
        @interpreter.setup(@list, @event.id)
      end
      @interpreter.update
    end
  end
  
  def update
    super
  end
end
 
class Game_Map
  attr_accessor :gb_antilagcommons, :gb_antilagnonmove, :gb_antilagnosprite, 
    :gb_antilagmoveevents, :gb_antilagmove, :gb_antilagprocess,
    :gb_antilagspriteevents, :gb_antilag_spriteupdate
  
  def gamebaker_antilag?(sg)
    return false if sg.real_x < @gb_antilagscreen_x or
                    sg.real_x > @gb_antilagscreen_width or
                    sg.real_y < @gb_antilagscreen_y or
                    sg.real_y > @gb_antilagscreen_height
    return true
  end
  
  alias gamebaker_antilag_setupev setup_events
  def setup_events
    gamebaker_antilag_getscreen
    @gb_antilagnonmove = []
    @gb_antilagmove = []
    @gb_antilagnosprite = []
    @gb_antilagprocess = []
    @gb_antilagcommons = [] if !@gb_antilagcommons
    gamebaker_antilag_setupev
    gamebaker_antilag_refresh_events
  end
  
  def gamebaker_antilag_getscreen
    @gb_antilagscreen_x = @display_x - GameBaker::AntiLagModifierX
    @gb_antilagscreen_y = @display_y - GameBaker::AntiLagModifierY
    @gb_antilagscreen_width = 
      @display_x + (Graphics.width * 8) + GameBaker::AntiLagModifierWidth
    @gb_antilagscreen_height = 
      @display_y + (Graphics.height * 8) + GameBaker::AntiLagModifierHeight
  end
  
  def gamebaker_antilag_refresh_events
    @gb_antilagalwaysmove = []
    @gb_antilagmoveevents = []
    @gb_antilagspriteevents = []
    for i in @events.values
      next if @gb_antilagnosprite.include?(i)
      @gb_antilagspriteevents += [i]
    end
    @gb_antilagspriteevents += [$game_player]
    for vehicle in $game_map.vehicles
      next if vehicle.map_id != @map_id
      @gb_antilagspriteevents += [vehicle]
    end
    for i in 0...@gb_antilagmove.size
      @gb_antilagalwaysmove += [@events[@gb_antilagmove[i]].id]
    end
    for i in @events.values
      next if @gb_antilagnonmove.include?(i.id)
      next if @gb_antilagmove.include?(i.id)
      @gb_antilagmoveevents += [i.id]
    end
    @gb_antilag_spriteupdate = true
  end
  
  alias gamebaker_antilag_ue update_events
  def update_events
    return gamebaker_antilag_ue if $game_switches[GameBaker::AntiLagDisable]
    gamebaker_antilag_getscreen
    for i in 0...@gb_antilagprocess.size
      @events[@gb_antilagprocess[i]].gamebaker_antilag_interupdate
    end
    for i in 0...@gb_antilagalwaysmove.size
      @events[@gb_antilagalwaysmove[i]].update
    end
    for i in 0...@gb_antilagmoveevents.size
      j = @gb_antilagmoveevents[i]
      @events[j].update if gamebaker_antilag?(@events[j])
    end
    for i in 0...@gb_antilagcommons.size
      @common_events[@gb_antilagcommons[i]].update
    end
  end
  
  alias gamebaker_antilag_maprefresh refresh
  def refresh
    gamebaker_antilag_maprefresh
    gamebaker_antilag_refresh_events
  end
end
 
class Game_Vehicle; attr_accessor :map_id; end
 
class Spriteset_Map
  def gamebaker_antilag_characters
    @gb_antilag_eventsprites = []
    for sprite in @character_sprites
      next if !$game_map.gb_antilagspriteevents.include?(sprite.character)
      @gb_antilag_eventsprites += [sprite]
    end
    $game_map.gb_antilag_spriteupdate = nil
  end
  
  alias gamebaker_antilag_uc update_characters
  def update_characters
    return gamebaker_antilag_uc if $game_switches[GameBaker::AntiLagDisable]
    gamebaker_antilag_characters if $game_map.gb_antilag_spriteupdate
    for sprite in @gb_antilag_eventsprites
      sprite.update if $game_map.gamebaker_antilag?(sprite.character)
    end
  end
end
 
#========================
# End of file! You can find more of our scripts at http://www.gamebaker.com






Akio - posté le 24/07/2008 à 12:25:47 (1 messages postés)

❤ 0

Maker très Expérimenté

Pour votre info...euh...faut vraiment pas utiliser ce script avec celui "Chenille".

Je pense qu'il sont pas compatible, car je lance mon projet, j'ai les personnage qui me suivent mais il sont inanimé et reste sur le position de départ. C'est vraiment horrible.:goutte

------------------------------------------------------------------------------------

image

[URL=http://www.casimages.com][img]http://nsa02.casimages.com/img/2008/07/24/0807241230554173441.gif[/img][/URL]


jonny_bravo (visiteur non enregistré) - posté le 11/08/2008 à 21:34:31

❤ 0

cool mais j'arrive pas a me téléporter!


Dark_style - posté le 12/08/2008 à 19:39:34 (17 messages postés)

❤ 0

Que le coté Dark vous guide!!

Ton script est bon pour des jeux très simple.... car il ne marche pas avec script chennille ni avec script a-rpg et marche pas si on se téléporte sur la même map...

Les rpg C'est comme les bonbon quand c'est fini en n'en veux encore


hamster-x (visiteur non enregistré) - posté le 04/09/2008 à 21:03:10

❤ 0

placez un anti lag avant les autres sciptes rajoute car ca peux foutre le bordel sur le foctionnement des a-rpg et autre (je n ai pas essaye ce scipt)


Debutant anonime (visiteur non enregistré) - posté le 12/10/2008 à 18:56:13

❤ 0

Arf dommage en attente d'une meilleur verssion...:(


Atanacius - posté le 02/02/2009 à 05:48:25 (19 messages postés)

❤ 0

Hum.. AntiLag? Kezako?
C'est un LAG de sockets ?


mathieu1300 - posté le 15/04/2009 à 22:10:10 (2 messages postés)

❤ 0

OQP

il faudrait un script qui fasse DElaguer tout le jeu
et pas seulment les events :banane


squall564 - posté le 10/05/2009 à 14:49:41 (27 messages postés)

❤ 0

Bien d'accord c'est vrai que en ayant mis a peine 11 script en plus SA RAME A MORT :feu:fache2
( bon ok sa fait vraiment un peu beaucoup 11 script mais bon ):bob

Squall564


Famouus Joe - posté le 15/07/2009 à 20:10:42 (4 messages postés)

❤ 0

Bah c'est pas si compliqué à comprendre ce script!

En clair, il sert à désactiver les évents qui sont sur la map mais que l'on ne voit pas.
Grâce au & placé dans le nom d'un évent, ce dernier évoluera même s'il est en dehors de l'écran (il travaillera de la même manière que sans le script).

Voila 8-)


ruinechozo - posté le 30/10/2009 à 09:04:38 (22 messages postés)

❤ 0

euuuh... squall j'en suis à 33:D:p mais il lag à mort:sriden

Dans le monde il y a trois sortes de personnes : ceux qui savent compter et ceux qui savent pas


Mimi VII - posté le 30/12/2009 à 16:14:56 (87 messages postés)

❤ 0

Celui de ma soeur ne lague pas tant que ça !
Avec +de 30 scripts...:p


Tata-Monos - posté le 30/12/2009 à 17:40:56 (57322 messages postés)

❤ 0

Vive le homebrew

Je peux causer à ta soeur ?

Signer du nez ?


squall564 - posté le 26/03/2010 à 17:55:59 (27 messages postés)

❤ 0

A la la ! c'est aps possible rien que 6 map et 7 script, sa fait encore tout bugué XD :mort mais bon pas grave c'est juste vista qui bug !

Squall564


Tata-Monos - posté le 26/03/2010 à 19:02:33 (57322 messages postés)

❤ 0

Vive le homebrew

Un vrais bouc émissaire ce vista heins.

Signer du nez ?


--ayoub-- - posté le 15/05/2010 à 13:04:21 (96 messages postés)

❤ 0

C'est moi la meileur

il y a des problemes a ton script ....:doute3

78


Fredomaker - posté le 13/08/2010 à 15:01:26 (37 messages postés)

❤ 0

Epéliste en colère

C'est quoi ce script de malade:s:goutte:wouah

beaucoup de choses se passe mais quoi que vous fassiez quelqu'un ous regarde d'un mauvais oeil


Pitchoumat - posté le 10/12/2010 à 19:58:11 (58 messages postés)

❤ 0

J'ai tester et le sripts fonctionne très bien.
Pour info : J'ai fais une Map avec que des événements à toutes les cases et le jeu ne laguait pas.
Très bon script.

[URL=http://rpg-maker-revelation.bb-fr.com/forum][IMG]http://www.web-modules.net/upload/cache/userbar/109/553.gif[/IMG][/URL]


BlueFraction - posté le 02/07/2011 à 12:05:57 (7 messages postés)

❤ 0

Maker Pro

marche pas avec le script chenille


Skatino - posté le 20/07/2013 à 02:12:25 (53 messages postés)

❤ 0

Vive rpg-maker.fr !

Erreur ligne 307

Suite à de nombreux abus, le post en invités a été désactivé. Veuillez vous inscrire si vous souhaitez participer à la conversation.

Haut de page

Merci de ne pas reproduire le contenu de ce site sans autorisation.
Contacter l'équipe - Mentions légales

Plan du site

Communauté: Accueil | Forum | Chat | Commentaires | News | Flash-news | Screen de la semaine | Sorties | Tests | Gaming-Live | Interviews | Galerie | OST | Blogs | Recherche
Apprendre: Visite guidée | RPG Maker 95 | RPG Maker 2003 | RPG Maker XP | RPG Maker VX | RPG Maker MV | Tutoriels | Guides | Making-of
Télécharger: Programmes | Scripts/Plugins | Ressources graphiques / sonores | Packs de ressources | Midis | Eléments séparés | Sprites
Jeux: Au hasard | Notre sélection | Sélection des membres | Tous les jeux | Jeux complets | Le cimetière | RPG Maker 95 | RPG Maker 2000 | RPG Maker 2003 | RPG Maker XP | RPG Maker VX | RPG Maker VX Ace | RPG Maker MV | Autres | Proposer
Ressources RPG Maker 2000/2003: Chipsets | Charsets | Panoramas | Backdrops | Facesets | Battle anims | Battle charsets | Monstres | Systems | Templates
Ressources RPG Maker XP: Tilesets | Autotiles | Characters | Battlers | Window skins | Icônes | Transitions | Fogs | Templates
Ressources RPG Maker VX: Tilesets | Charsets | Facesets | Systèmes
Ressources RPG Maker MV: Tilesets | Characters | Faces | Systèmes | Title | Battlebacks | Animations | SV/Ennemis
Archives: Palmarès | L'Annuaire | Livre d'or | Le Wiki | Divers