patchFreeciv - Patches: patch #1339, Unit type requirements

 
 
Show feedback again

patch #1339: Unit type requirements

Submitted by:  pepeto <pepeto>
Submitted on:  Sat 17 Oct 2009 02:12:36 PM UTC  
 
Category: rulesetsPriority: 1 - Later
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Planned Release: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 14 May 2012 12:10:56 PM UTC, comment #12:

Updated patch trunk rev.21272

Same gmake result...

(file #15739)

J. M. Gorbach <gorb>
Tue 03 Apr 2012 08:37:42 AM UTC, comment #11:

Updated patch trunk rev.21114

The patch is different. I don't delete nothing, but I only add new functions: server/ruleset.c, common/unittype.c, common/unittype.h, common/packets.def and client/packhand.c.

gmake result:

(file #15505)

J. M. Gorbach <gorb>
Thu 02 Feb 2012 08:02:59 PM UTC, comment #10:

Update new file diff.

I'm at a standstill.

(file #14973)

J. M. Gorbach <gorb>
Tue 10 Jan 2012 04:22:46 PM UTC, comment #9:

Fixes common/unittype.h

with

Now remove and rewrite need_improvement, need_government and require_advance.

J. M. Gorbach <gorb>
Mon 09 Jan 2012 10:44:37 AM UTC, comment #8:

Fixed client/gui-gtk-2.0/helpdlg.c

Error in compilation:

unittype.h row 232

Any ideas?

N.B. attached clientgui-gtk-2.0helpdlg.diff

(file #14776)

J. M. Gorbach <gorb>
Sat 07 Jan 2012 11:16:59 PM UTC, comment #7:

Error with new code.zip. Packtes.def contains many errors. Update new version.

(file #14773)

J. M. Gorbach <gorb>
Sat 07 Jan 2012 11:00:22 PM UTC, comment #6:

I found the problem.

common/packets.def lost two strings:

Now I update new Code.zip

(file #14772)

J. M. Gorbach <gorb>
Sat 07 Jan 2012 05:09:20 PM UTC, comment #5:

I read in ./generate_packets.py:

Now... probably the problem is in common/packets.def, but I don't find anything. In this file I have edit only 3 rows:

Original

Edit

Generate_packets.py generate packets.def or vice versa?

J. M. Gorbach <gorb>
Sat 07 Jan 2012 04:07:42 PM UTC, comment #4:

1. replace in the source code files in data.zip
2. replace in the source code files in code.zip
3. apply file #14713: patch.diff

Try to compile and the result:

Thanks akfaew/dude for the help with compilation

J. M. Gorbach <gorb>
Wed 14 Dec 2011 11:20:40 AM UTC, comment #3:

Both patch are for TRUNK.

Now I look for these files:

  • ai/default/advmilitary.c
  • ai/default/aitech.c
  • ai/default/aidiplomat.c
  • ai/default/aiparatrooper.c
  • ai/default/aisettler.c
  • ai/default/aiunit.c
  • client/helpdata.c
  • common/unittype.c

All files contain string ''require_advance'', ''need_improvement'' and ''need_government''.

J. M. Gorbach <gorb>
Tue 13 Dec 2011 10:40:59 PM UTC, comment #2:

Update - new patch (untested, maybe bugged and maybe instable)

Remove ''require_advance'' from:

  • client/gui-gtk-2.0/helpdlg.c
  • client/gui-gtk-3.0/helpdlg.c
  • client/gui-sdl/helpdlg.c
  • client/gui-sdl/repodlgs.c
  • client/gui-win32/helpdlg.c
  • client/gui-xaw/helpdlg.c

Problem with client/gui-sdl/diplomat_dialog.c:

I don't know what to do with:

It's only string in all file with ''require_advance''.

(file #14713)

J. M. Gorbach <gorb>
Tue 13 Dec 2011 05:24:36 PM UTC, comment #1:

Premise: I'am not a programmer.

That being stated... Patch untested, probably bugged. The size is 677 kb because I'am on Windows and I used WinMerge - awful software -.

Data.zip = cointains all units.ruleset

replace with

Code.zip = contains edited file (packets.def, packhand.c, reqtree.c, ruleset.c and unittype.c)

If it's not clear something.

(file #14710, file #14711, file #14712)

J. M. Gorbach <gorb>
Sat 17 Oct 2009 02:12:36 PM UTC, original submission:

Remove the fields of unit types:

  • require_advance
  • need_improvement
  • need_government

Replace them by 'requirement_vector reqs'.

pepeto <pepeto>
Project Member

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #14773:  packets.def added by gorb (48kB - application/octet-stream)
file #14772:  Code.zip added by gorb (82kB - application/zip)
file #14713:  patch.diff added by gorb (13kB - application/octet-stream)
file #14710:  unit_type_requirements.diff added by gorb (678kB - application/octet-stream)
file #14711:  code.zip added by gorb (82kB - application/x-zip-compressed)
file #14712:  data.zip added by gorb (60kB - application/x-zip-compressed)

 

Depends on the following items: None found

Digest:
   bug dependencies, patch dependencies.

 

Carbon-Copy List
  • -unavailable- added by morphles
  • -unavailable- added by jtn (Updated the item)
  • -unavailable- added by gorb (Updated the item)
  • -unavailable- added by dmarks (Updated the item)
  • -unavailable- added by pepeto (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 15 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 02 Feb 2014 08:22:15 AM UTCmorphlesCarbon-Copy-=>Added morphles
    Mon 18 Jun 2012 01:15:35 AM UTCjtnPlanned Release2.4.0=>
    Mon 14 May 2012 12:10:56 PM UTCgorbAttached File-=>Added trunk-rev21272_requirement_vector.diff, #15739
    Tue 03 Apr 2012 08:37:42 AM UTCgorbAttached File-=>Added trunk-rev21114_requirement_vector.diff, #15505
    Thu 02 Feb 2012 08:02:58 PM UTCgorbAttached File-=>Added trunk_requirement_vector-02-2012.zip, #14973
    Mon 09 Jan 2012 10:44:37 AM UTCgorbAttached File-=>Added clientgui-gtk-2.0helpdlg.diff, #14776
    Sat 07 Jan 2012 11:16:59 PM UTCgorbAttached File-=>Added packets.def, #14773
    Sat 07 Jan 2012 11:00:22 PM UTCgorbAttached File-=>Added Code.zip, #14772
    Tue 13 Dec 2011 10:40:59 PM UTCgorbAttached File-=>Added patch.diff, #14713
    Tue 13 Dec 2011 05:24:36 PM UTCgorbAttached File-=>Added unit_type_requirements.diff, #14710
      Attached File-=>Added code.zip, #14711
      Attached File-=>Added data.zip, #14712
    Wed 27 Oct 2010 01:54:26 PM UTCpepetoPlanned Release2.3.0=>2.4.0
    Sun 20 Dec 2009 09:41:17 AM UTCdmarksPlanned Release=>2.3.0
    Sat 17 Oct 2009 02:31:36 PM UTCpepetoDependencies-=>patch #1338 is dependent
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup