Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Apr 18, 2024 10:15 pm
All times are UTC + 0
Map Ini question
Moderators: Generals Moderators, Global Moderators
Post new topic   Reply to topic Page 1 of 1 [17 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
ModernDayWorrier
Medic


Joined: 10 Jan 2009

PostPosted: Sat Jan 10, 2009 5:03 am    Post subject:  Map Ini question
Subject description: battleship bombardment type weapons
Reply with quote  Mark this post and the followings unread

In a map ini, is it possible to have an ordinary weapon be fired strictly by a command button with a timer different then that of its reloading time? I understand you can do this with any weapon (the Comanche rocketpod is an example) however the reload time is retained as defined in weapon.ini. Id like to know if there is a way to override this without modding the game.

Back to top
View user's profile Send private message AIM Address
ModernDayWorrier
Medic


Joined: 10 Jan 2009

PostPosted: Sun Jan 11, 2009 2:19 am    Post subject: Reply with quote  Mark this post and the followings unread

cmon someone has to know something about this subject. Id prefer this rather than 20 trials of crashed ZH. Normally I wouldn't mind but my computer is a piece of crap and it takes forever to load.

Back to top
View user's profile Send private message AIM Address
ORCACommander
Commander


Joined: 14 Feb 2006
Location: Flying into hostile territory

PostPosted: Sun Jan 11, 2009 2:33 am    Post subject: Reply with quote  Mark this post and the followings unread

you'd have better luck getting an answer on the revora forums mate.

_________________

Back to top
View user's profile Send private message
Shadow Hunter
Cyborg Commando


Joined: 30 Aug 2008
Location: Brazil.

PostPosted: Sun Jan 11, 2009 2:48 am    Post subject: Reply with quote  Mark this post and the followings unread

I think that the one who can awnser you is DaFool, he writed a lot of tutorials here!

Back to top
View user's profile Send private message
DaFool
Defense Minister


Joined: 07 Nov 2006

PostPosted: Sun Jan 11, 2009 2:53 am    Post subject: Reply with quote  Mark this post and the followings unread

I haven't really tried to do anything similair to this, but couldn't you just clone the weapon, change the time it reloads, and attach your button to it? I don't know that much about map modding for generals.

_________________
Please, read the signature rules of the forum.

Back to top
View user's profile Send private message
Orac
President


Joined: 11 Jul 2008
Location: New Zealand

PostPosted: Sun Jan 11, 2009 2:57 am    Post subject: Reply with quote  Mark this post and the followings unread

If it isn't isometric, ask Dutchygamer - He seems to know everything....

Last edited by Orac on Fri Sep 04, 2009 9:02 am; edited 1 time in total

Back to top
View user's profile Send private message
ModernDayWorrier
Medic


Joined: 10 Jan 2009

PostPosted: Sun Jan 11, 2009 3:55 am    Post subject: Reply with quote  Mark this post and the followings unread

no this is for a map i dont feel like completely modding generals im just messing around with map ini's. I copied the concept of the helix napalm bomb but changed the special object to the inferno cannon shell. Unfortunately every target is invalid.

_________________
Go to CJ get yo BJ only 2.99 fo a limited time - The Chronicals of BJ written by myself.

Back to top
View user's profile Send private message AIM Address
ModernDayWorrier
Medic


Joined: 10 Jan 2009

PostPosted: Sun Jan 11, 2009 4:44 am    Post subject: Reply with quote  Mark this post and the followings unread

Ok I tried advancing more with the helix napalam bomb method. It worked well initiall but now I get a crazy error when the game loads. Here is the necessary Vehicle ini and the error report. Please if anyone knows whats happening speak up!

from the releasecrashinfo.txt document
Code:
Release Crash at Sat Jan 10 23:30:45 2009
; Reason Uncaught Exception in GameEngine::update

Last error:
Exception is access violation
WinMain at 401720
Error code: EXCEPTION_ACCESS_VIOLATION
Description: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Access address:00000004 was read from.

Stack Dump:
  <Unknown>(-1) : <Unknown> 0x006867AE

Details:
Register dump...
Eip:006867AE   Esp:0012F4B8   Ebp:00000000
Eax:00000000   Ebx:02CCFFF4   Ecx:00000000
Edx:00000000   Esi:0AC9D524   Edi:0AC9D538
EFlags:00010246
CS:001b  SS:0023  DS:0023  ES:0023  FS:003b  GS:0000
EIP bytes dump...

Bytes at CS:EIP (006867AE)  : 8B 48 04 3B CD 74 05 E8 16 B4 D9 FF 8A 88 FD 00 00 00 84 C9 75 5A 8B 5F F4 39 6B 08 74 52 8B 4F


Current stack:


The map ini:
Code:
;--------------MAKE SURE THIS VEHICLE IS LAST FOR EXPERIMENTAL PURPOSES----------------   
;--------------------------------------------------------------------------------------
;im gonna try to have this launch the grenade like the helix launches its napalm bomb
;the projectile should follow its beizer path, we'll find out

Object ChinaVehicleInfernoCannon
;  WeaponSet
;    Conditions       = None
;    Weapon           = PRIMARY NONE ; NECESSARY
;  End

; AddModule ModuleTag_33_Override; this is causing some serious crashes
;   Behavior = SpecialAbility ModuleTag_33
;    UpdateModuleStartsAttack = Yes
;    SpecialPowerTemplate = SpecialAbilityTossGrenade
;    StartsPaused              = No; so the UnpauseSpecialPowerUpgrade, below can turn it on
;  End
; End
 
 AddModule ModuleTag_34_Override
    Behavior = SpecialAbilityUpdate ModuleTag_34
    SpecialPowerTemplate = SpecialAbilityTossGrenade
    StartAbilityRange = 200.0
    PreparationTime = 0
    SpecialObject = InfernoTankShell
    MaxSpecialObjects = 1
    SpecialObjectsPersistWhenOwnerDies = Yes
    SpecialObjectsPersistent = Yes          ;Charges are persistent till lifetime expires or owner detonates them.
    UniqueSpecialObjectTargets = No        ;This would prevent multiple charges placed on the same object.
    UnpackTime              = 500     ;slight delay to drop bomb
    FlipOwnerAfterUnpacking = No
    FleeRangeAfterCompletion = 0.0         ;DOes not run away after finishing ability
    UnpackSound               = NoSound
    LoseStealthOnTrigger      = No
    ApproachRequiresLOS       = No ; we are a helicopter, we can see everything
    NeedToFaceTarget          = No ; can drop the bomb at any angle to target

    PersistentPrepTime        = 100
    PersistenceRequiresRecharge = Yes

  End
 End


End

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;COMMAND BUTTONS
;//////////////////////////////////////////////////////////////////////////////////////////////////////////////
;---------------------------------------------------------------------------------
;---------KEEP THE GRENADE COMMANDs GROUPED THIS IS AN EXPERIMENT------------------

SpecialPower SpecialAbilityTossGrenade
  Enum              = SPECIAL_HELIX_NAPALM_BOMB
  ReloadTime        = 30000   ; in milliseconds
  RadiusCursorRadius  = 50
End

;---------------------------------------------------------
CommandButton Command_TossGrenade
  Command                 = SPECIAL_POWER
  SpecialPower            = SpecialAbilityTossGrenade
  Options                 = OK_FOR_MULTI_SELECT NEED_TARGET_POS NEED_SPECIAL_POWER_SCIENCE CONTEXTMODE_COMMAND
  TextLabel               = CONTROLBAR:DropNukeBomb
  ButtonImage             = SNHelixUp05
  ButtonBorderType        = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel           = CONTROLBAR:ToolTipDropNukeBomb
  RadiusCursorType        = HELIX_NAPALM_BOMB ;;; maybe Samm made a special HELIX one???? MAYBE!!!
  InvalidCursorName       = GenericInvalid
  UnitSpecificSound       = NoSound
End


CommandSet ChinaVehicleInfernoCannonCommandSet
  1  = Command_TossGrenade
  11 = Command_AttackMove
  13 = Command_Guard
  14 = Command_Stop
End


;----------------------------------
;-----------------------------------
;--------------------------------
;-----------------------------------

Back to top
View user's profile Send private message AIM Address
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Sun Jan 11, 2009 11:54 am    Post subject: Reply with quote  Mark this post and the followings unread

Orac wrote:
If it isn't iso, ask Dutchygamer - He seems to know everything....

Not everything, but I can give it a try #Tongue

Well, my first question: where did you get those codes from?

Back to top
View user's profile Send private message Send e-mail Skype Account
ModernDayWorrier
Medic


Joined: 10 Jan 2009

PostPosted: Sun Jan 11, 2009 5:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

I made them...

_________________
Go to CJ get yo BJ only 2.99 fo a limited time - The Chronicals of BJ written by myself.

Back to top
View user's profile Send private message AIM Address
DaFool
Defense Minister


Joined: 07 Nov 2006

PostPosted: Sun Jan 11, 2009 5:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

so like, if you can mod those things in the map why can't you just put an entry for the weapon in the map?

_________________
Please, read the signature rules of the forum.

Back to top
View user's profile Send private message
ModernDayWorrier
Medic


Joined: 10 Jan 2009

PostPosted: Sun Jan 11, 2009 7:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

because map ini do not allow everything to be edited. I could adda new weapon but new weapons in map ini's cannot spawn any kind of objects. So basically its only good for machine guns and lasers.

_________________
Go to CJ get yo BJ only 2.99 fo a limited time - The Chronicals of BJ written by myself.

Back to top
View user's profile Send private message AIM Address
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Mon Jan 12, 2009 4:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

I think that what you want is quite impossible to do without modding. Sorry Confused

Back to top
View user's profile Send private message Send e-mail Skype Account
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Mon Jan 12, 2009 5:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hah, i dont have a Generals DB, so i cant help here #Tongue

Back to top
View user's profile Send private message
ChielScape
General


Joined: 07 Mar 2006
Location: In ur BIOS, Steeln ur Megahurtz!

PostPosted: Mon Jan 12, 2009 6:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

Dutchygamer wrote:
I think that what you want is quite impossible to do without modding. Sorry Confused

Guess what? This is a modding forum!

_________________
Please, read the signature rules of the forum.

Back to top
View user's profile Send private message Send e-mail Skype Account
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Mon Jan 12, 2009 6:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Guess what? You f*cking annoy me! Read the thread before posting moron Rolling Eyes

Back to top
View user's profile Send private message Send e-mail Skype Account
ModernDayWorrier
Medic


Joined: 10 Jan 2009

PostPosted: Tue Jan 13, 2009 3:05 am    Post subject: Reply with quote  Mark this post and the followings unread

Damn! Well do you know where i can find the syntax(s) for Enum = XXXX? Perhaps I could play around with those codes unless they are built into the exe.

_________________
Go to CJ get yo BJ only 2.99 fo a limited time - The Chronicals of BJ written by myself.

Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [17 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1607s ][ Queries: 11 (0.0081s) ][ Debug on ]